Testing Theme Location Detection in WPScan Repository
This test suite validates the functionality of WPScan’s theme location detection through known locations. It focuses on ensuring the KnownLocations finder class correctly identifies WordPress theme paths and handles various URL patterns.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
wpscanteam/wpscan
spec/app/finders/themes/known_locations_spec.rb
# frozen_string_literal: true
describe WPScan::Finders::Themes::KnownLocations do
subject(:finder) { described_class.new(target) }
let(:target) { WPScan::Target.new(url) }
let(:url) { 'http://ex.lo/' }
let(:fixtures) { FINDERS_FIXTURES.join('themes', 'known_locations') }
describe '#aggressive' do
xit
end
end