コード例 #1
0
 /**
  * @Then the code field should be disabled
  */
 public function theCodeFieldShouldBeDisabled()
 {
     Assert::true($this->updatePage->isCodeDisabled(), 'Code should be immutable, but it does not.');
 }
コード例 #2
0
 function it_throws_an_exception_if_the_code_field_is_not_immutable(UpdatePageInterface $updatePage)
 {
     $updatePage->isCodeDisabled()->willReturn(false);
     $this->shouldThrow(new \InvalidArgumentException('Code should be immutable, but it does not.'))->during('theCodeFieldShouldBeDisabled');
 }