Skip to content

Commit

Permalink
fix [wordpress] php version not set test (badges#8496)
Browse files Browse the repository at this point in the history
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
  • Loading branch information
chris48s and repo-ranger[bot] authored Oct 8, 2022
1 parent 8f4662b commit c7c6fa7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions services/wordpress/wordpress-platform.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,22 @@ t.create('Plugin Required PHP Version')

t.create('Plugin Required PHP Version (Not Set)')
.get('/plugin/required-php/akismet.json')
.intercept(nock =>
nock('https://api.wordpress.org')
.get('/plugins/info/1.2/')
.query(mockedQuerySelector)
.reply(200, {
version: '1.2',
rating: 80,
num_ratings: 100,
downloaded: 100,
active_installs: 100,
requires: false,
tested: '4.0.0',
last_updated: '2020-01-01 7:21am GMT',
requires_php: false,
})
)
.expectBadge({
label: 'php',
message: 'not set for this plugin',
Expand Down

0 comments on commit c7c6fa7

Please sign in to comment.