| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ArticleMetaFactoryTest extends Unit |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @dataProvider dataCreate |
||
| 13 | */ |
||
| 14 | public function testCreate(int $articleId, string $content): void |
||
| 15 | { |
||
| 16 | $model = ArticleMetaFactory::create($articleId, $content); |
||
| 17 | $this->assertSame($articleId, $model->article_id); |
||
| 18 | $this->assertSame($content, $model->content); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function dataCreate(): array |
||
| 26 | ]; |
||
| 27 | } |
||
| 29 |