Skip to content

Commit

Permalink
Merge pull request #559 from carusogabriel/refactoring-tests
Browse files Browse the repository at this point in the history
Refactoring tests
  • Loading branch information
ADmad committed Dec 5, 2017
2 parents 1a2937c + 718b3c1 commit a26078b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/TestCase/Error/ExceptionRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testNormalExceptionRendering()

$viewVars = $Controller->viewVars;

$this->assertTrue(!empty($viewVars['_serialize']));
$this->assertNotEmpty($viewVars['_serialize']);

$expected = ['success', 'data'];
$actual = $viewVars['_serialize'];
Expand Down Expand Up @@ -121,7 +121,7 @@ public function testNormalExceptionRenderingQueryLog()

$viewVars = $Controller->viewVars;

$this->assertTrue(!empty($viewVars['_serialize']));
$this->assertNotEmpty($viewVars['_serialize']);

$expected = ['success', 'data', 'queryLog'];
$actual = $viewVars['_serialize'];
Expand All @@ -144,7 +144,7 @@ public function testNormalExceptionRenderingQueryLog()
unset($actual['trace'], $actual['file'], $actual['line']);
$this->assertEquals($expected, $actual);

$this->assertTrue(!empty($queryLog));
$this->assertNotEmpty($queryLog);
$this->assertTrue(isset($queryLog['test']));
$this->assertEquals('query', $queryLog['test'][0]);

Expand Down Expand Up @@ -191,7 +191,7 @@ public function testNormalNestedExceptionRendering()

$viewVars = $Controller->viewVars;

$this->assertTrue(!empty($viewVars['_serialize']));
$this->assertNotEmpty($viewVars['_serialize']);

$expected = ['success', 'data'];
$actual = $viewVars['_serialize'];
Expand Down Expand Up @@ -255,7 +255,7 @@ public function testMissingViewExceptionDuringRendering()

$viewVars = $Controller->viewVars;

$this->assertTrue(!empty($viewVars['_serialize']));
$this->assertNotEmpty($viewVars['_serialize']);

$expected = ['success', 'data'];
$actual = $viewVars['_serialize'];
Expand Down Expand Up @@ -321,7 +321,7 @@ public function testGenericExceptionDuringRendering()

$viewVars = $Controller->viewVars;

$this->assertTrue(!empty($viewVars['_serialize']));
$this->assertNotEmpty($viewVars['_serialize']);

$expected = ['success', 'data'];
$actual = $viewVars['_serialize'];
Expand Down

0 comments on commit a26078b

Please sign in to comment.