We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22dba8c commit df34cf4Copy full SHA for df34cf4
1 file changed
tests/Widgets/ContentArticleWidgetTest.php
@@ -65,7 +65,10 @@ public function testNewInstance(): void
65
$widget
66
->expects(self::any())
67
->method('import')
68
- ->withConsecutive([Config::class, 'Config']);
+ ->willReturnCallback(function ($parameters) {
69
+ $this->assertInstanceof(Config::class, $parameters[0]);
70
+ $this->assertSame('Config', $parameters[1]);
71
+ });
72
73
self::assertEmpty($widget->getAttributes());
74
}
0 commit comments