Skip to content

Commit 8276f29

Browse files
committed
Correct tests
1 parent 0f9b4a2 commit 8276f29

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.composer-require-checker.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"InspiredMinds\\ContaoFileUsage\\Result\\FileTreeSingleResult",
1414
"InspiredMinds\\ContaoFileUsage\\Result\\ResultInterface",
1515
"InspiredMinds\\ContaoFileUsage\\Result\\ResultsCollection",
16-
"tl_content"
16+
"tl_content",
17+
"MetaModels\\AttributeContentArticleBundle\\MetaModelsAttributeContentArticleBundle"
1718
]
1819
}

tests/ContaoManager/PluginTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public function testGetBundles(): void
4747
$config
4848
->expects(self::once())
4949
->method('getLoadAfter')
50-
->willReturn([MetaModelsCoreBundle::class]);
50+
->willReturn([
51+
'MetaModels\AttributeContentArticleBundle\MetaModelsAttributeContentArticleBundle',
52+
MetaModelsCoreBundle::class
53+
]);
5154
$config
5255
->expects(self::once())
5356
->method('getReplace')

tests/Widgets/ContentArticleWidgetTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testNewInstance(): void
4848

4949
$input = $this->getMockBuilder(Adapter::class)
5050
->disableOriginalConstructor()
51-
->setMethods(['get'])
51+
->addMethods(['get'])
5252
->getMock();
5353

5454
$input
@@ -61,7 +61,7 @@ public function testNewInstance(): void
6161

6262
$widget = $this->getMockBuilder(ContentArticleWidget::class)
6363
->setConstructorArgs([null, $dcCompat, $connection, $input, $translator])
64-
->setMethods(['import'])
64+
->onlyMethods(['import'])
6565
->getMock();
6666

6767
$widget

0 commit comments

Comments
 (0)