mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
PHP 8 support, cookie unit tests (#2507)
This commit is contained in:
@@ -44,7 +44,7 @@ class UpdateTest extends TestCase
|
||||
|
||||
// Test for successful response and that the email is included in the response
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertContains('normal@machine.local', (string) $response->getBody());
|
||||
$this->assertStringContainsString('normal@machine.local', (string) $response->getBody());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,6 +61,6 @@ class UpdateTest extends TestCase
|
||||
|
||||
// Make sure sensitive information is not made public
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertNotContains('admin@machine.local', (string) $response->getBody());
|
||||
$this->assertStringNotContainsString('admin@machine.local', (string) $response->getBody());
|
||||
}
|
||||
}
|
||||
|
@@ -174,7 +174,7 @@ class ModelTest extends TestCase
|
||||
$user = User::find(1);
|
||||
|
||||
$this->assertNotEquals([], $user->customRelation()->get()->toArray());
|
||||
$this->assertContains(json_encode(__CLASS__), json_encode($user->customRelation()->get()));
|
||||
$this->assertStringContainsString(json_encode(__CLASS__), json_encode($user->customRelation()->get()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user