Skip to content

Commit

Permalink
Don't assert null on exceptions because of the full rendered stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
janbuecker committed Apr 2, 2019
1 parent fb34fae commit a3df4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Test/Intergation/ProductVisibilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function testVisibilityOnProductPage()
}

if ($case['visible']) {
static::assertNull($e);
static::assertTrue($e === null, 'Exception is not be thrown.');
static::assertSame($case['productId'], $page->getProduct()->getId());
continue;
}
Expand Down

0 comments on commit a3df4dd

Please sign in to comment.