Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
55 | public function iShouldNotBeAbleToTranslateItIn($localeCode) |
||
56 | { |
||
57 | try { |
||
58 | $this->taxonCreatePage->describeItAs('Foo bar', $localeCode); |
||
59 | } catch (ElementNotFoundException $exception) { |
||
60 | return; |
||
61 | } |
||
62 | |||
63 | throw new \DomainException(sprintf('I should not be able to translate it in "%s", but I am.', $localeCode)); |
||
64 | } |
||
65 | } |
||
66 |