Skip to content

Commit

Permalink
Merge pull request #40 from creative-commoners/pulls/1/sapphire-test-…
Browse files Browse the repository at this point in the history
…nine

API phpunit 9 support
  • Loading branch information
maxime-rainville committed Nov 8, 2021
2 parents f1649ac + de8ef74 commit d5f6080
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
],
"license": "BSD-3-Clause",
"require": {
"php": "^7.3 || ^8.0",
"silverstripe/framework": "^4.10",
"cwp/cwp": "^2",
"silverstripe/fulltextsearch": "^3@dev"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion tests/CwpSearchPageControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public function testIndex()
$result = $this->get('/search');

$this->assertSame(302, $result->getStatusCode());
$this->assertContains('SearchForm', $result->getHeader('Location'));
$this->assertStringContainsString('SearchForm', $result->getHeader('Location'));
}
}
2 changes: 1 addition & 1 deletion tests/Extensions/SynonymValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SynonymValidatorTest extends SapphireTest
*/
protected $validator;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit d5f6080

Please sign in to comment.