summaryrefslogtreecommitdiffstats
path: root/tests/InstallTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/InstallTest.php')
-rw-r--r--tests/InstallTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/InstallTest.php b/tests/InstallTest.php
index 7615f18..e43f107 100644
--- a/tests/InstallTest.php
+++ b/tests/InstallTest.php
@@ -4,13 +4,13 @@ require_once 'GuzzleHarness.php';
class InstallTest extends GuzzleHarness {
- public function setUp()
+ public function setUp() : void
{
parent::setUp();
removeCustomFiles();
}
- public function tearDown()
+ public function tearDown() : void
{
parent::tearDown();
removeCustomFiles();
@@ -20,14 +20,14 @@ class InstallTest extends GuzzleHarness {
{
$res = $this->client->get('/index.php');
$this->assertEquals(200, $res->getStatusCode());
- $this->assertContains('install moonmoon', (string) $res->getBody());
+ $this->assertStringContainsString('install moonmoon', (string) $res->getBody());
}
public function test_install_page_loads_without_error()
{
$res = $this->client->get('/install.php');
$this->assertEquals(200, $res->getStatusCode());
- $this->assertContains('Administrator password', (string) $res->getBody());
+ $this->assertStringContainsString('Administrator password', (string) $res->getBody());
}
/**
@@ -56,6 +56,6 @@ class InstallTest extends GuzzleHarness {
'form_params' => $data
]);
$this->assertEquals(200, $res->getStatusCode());
- $this->assertContains('Your moonmoon is ready.', (string) $res->getBody());
+ $this->assertStringContainsString('Your moonmoon is ready.', (string) $res->getBody());
}
} \ No newline at end of file