/**
  * @Then the code field should be disabled
  */
 public function theCodeFieldShouldBeDisabled()
 {
     Assert::true($this->updatePage->isCodeDisabled(), 'Code should be immutable, but it does not.');
 }
 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');
 }