| @@ 123-131 (lines=9) @@ | ||
| 120 | $this->assertInternalType('int', $article->integer); |
|
| 121 | } |
|
| 122 | ||
| 123 | public function testDate() |
|
| 124 | { |
|
| 125 | $this->initGeneralArticle(); |
|
| 126 | ||
| 127 | $article = new Article(); |
|
| 128 | $article->date = new \DateTime('2016-01-01 00:00:00'); |
|
| 129 | $article = $this->persistAndReloadArticle($article); |
|
| 130 | $this->assertEquals(new \DateTime('2016-01-01 00:00:00'), $article->date); |
|
| 131 | } |
|
| 132 | ||
| 133 | public function testObject() |
|
| 134 | { |
|
| @@ 79-85 (lines=7) @@ | ||
| 76 | $this->assertInternalType('int', $article->integer); |
|
| 77 | } |
|
| 78 | ||
| 79 | public function testDate() |
|
| 80 | { |
|
| 81 | $article = new Article(); |
|
| 82 | $article->date = new \DateTime('2016-01-01 00:00:00'); |
|
| 83 | $article = $this->persistAndReloadArticle($article); |
|
| 84 | $this->assertEquals(new \DateTime('2016-01-01 00:00:00'), $article->date); |
|
| 85 | } |
|
| 86 | ||
| 87 | public function testObject() |
|
| 88 | { |
|