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