1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:14:04 +00:00

Get Redis tests to pass

This commit is contained in:
Samuel Štancl 2019-09-19 18:38:40 +02:00
parent 6b0ec1b554
commit fb58f21f1c
3 changed files with 51 additions and 30 deletions

View file

@ -15,14 +15,14 @@ class TenantAssetTest extends TestCase
// response()->file() returns BinaryFileResponse whose content is
// inaccessible via getContent, so ->assertSee() can't be used
// $this->get(tenant_asset($filename))->assertSuccessful(); // TODO2 COMMENTED ASSERTIONS
// $this->assertFileExists($path); // TODO2 COMMENTED ASSERTIONS
// $this->get(tenant_asset($filename))->assertSuccessful(); // todo commented assertions
// $this->assertFileExists($path); // todo commented assertions
$f = \fopen($path, 'r');
$content = \fread($f, \filesize($path));
\fclose($f);
$f = fopen($path, 'r');
$content = fread($f, filesize($path));
fclose($f);
// $this->assertSame('bar', $content); // TODO2 COMMENTED ASSERTIONS
$this->assertTrue(true); // TODO2 COMMENTED ASSERTIONS
// $this->assertSame('bar', $content); // todo commented assertions
$this->assertTrue(true);
}
}