Skip to content
Snippets Groups Projects
Commit d08d0a53 authored by Gwendolen Lynch's avatar Gwendolen Lynch Committed by Felip Manyer i Ballester
Browse files

Drop redundant fails where exception expectations are set

parent be6e87a9
Branches
Tags
No related merge requests found
......@@ -25,24 +25,18 @@ final class SpeciesTest extends TestCase
{
$this->expectExceptionMessage('Illegal choice for `data`');
$this->species->nameUsage([], 'invalid');
$this->fail("No exception raised");
}
public function testShouldThrowExceptionIfNoDataKeyProvided()
{
$this->expectExceptionMessage('You must specify a key if `data` does not equal `all`');
$this->species->nameUsage([], 'name');
$this->fail("No exception raised");
}
public function testShouldThrowExceptionOnRootDataIfNoUuidOrShortNameProvided()
{
$this->expectExceptionMessage('`uuid` and `short_name` cannot be both NULL if `data` equals "root"');
$this->species->nameUsage([], 'root', '123');
$this->fail("No exception raised");
}
public function testShouldGetValidResponseWithValidArguments()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment