diff --git a/composer.json b/composer.json index 6210b09..aeab6a3 100644 --- a/composer.json +++ b/composer.json @@ -21,11 +21,11 @@ } ], "require": { - "silverstripe/framework": "^4.4@dev", + "silverstripe/framework": "^4.10", "silverstripe/cms": "^4.4@dev" }, "require-dev": { - "sminnee/phpunit": "^5.7", + "phpunit/phpunit": "^9", "squizlabs/php_codesniffer": "^3.0" }, "extra": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f148411..69df172 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,9 @@ - - tests - + + + tests + + diff --git a/tests/ShareDraftContentSiteTreeExtensionTest.php b/tests/ShareDraftContentSiteTreeExtensionTest.php index c2d6d8a..42208e4 100644 --- a/tests/ShareDraftContentSiteTreeExtensionTest.php +++ b/tests/ShareDraftContentSiteTreeExtensionTest.php @@ -77,7 +77,7 @@ public function testShareTokenLink() $controller = new ShareDraftController(); $response = $controller->preview($request); - $this->assertContains('share-draft-content-message', $response); + $this->assertStringContainsString('share-draft-content-message', $response); $request = new HTTPRequest('GET', $firstShareLink); @@ -89,6 +89,6 @@ public function testShareTokenLink() $controller = new ShareDraftController(); $response = $controller->preview($request); - $this->assertContains('share-draft-error-page', $response); + $this->assertStringContainsString('share-draft-error-page', $response); } }