Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function testAddPost() |
||
32 | { |
||
33 | $library = new BaseLibrary([]); |
||
34 | |||
35 | $this->boolean($library->isPostRegistered('A')) |
||
36 | ->isFalse(); |
||
37 | |||
38 | $post = new \mock\Matks\MarkdownBlogBundle\Blog\Post( |
||
39 | PostTest::getLoremIpsumFilepath(), 'A', '2016-01-02'); |
||
40 | |||
41 | $library->addPost($post); |
||
42 | |||
43 | $this->boolean($library->isPostRegistered('A')) |
||
44 | ->isTrue(); |
||
45 | $this->object($library->getPostByName('A')) |
||
46 | ->isIdentiCalTo($post); |
||
47 | } |
||
48 | } |
||
49 |