Skip to content

Commit

Permalink
Merge pull request #160 from loic425/docs/specify-no-title-by-default
Browse files Browse the repository at this point in the history
[docs] add it has no title by default behaviour on docs
  • Loading branch information
loic425 committed Mar 19, 2019
2 parents d73a332 + f2a9e92 commit 4989f39
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/cookbook/bdd/how-to-design-entities-with-phpspec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,16 @@ Solve this on your entity

Rerun phpspec again and check this specification is solved.

Specify it has a title
----------------------
Specify title behaviours
------------------------

.. code-block:: php
function it_has_no_title_by_default(): void
{
$this->getTitle()->shouldReturn(null);
}
function its_title_is_mutable(): void
{
$this->setTitle('This documentation is so great');
Expand Down

0 comments on commit 4989f39

Please sign in to comment.