Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Oct 4, 2023
1 parent 00cad62 commit 2912772
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/Mapper/BaseGroupedMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use PHPUnit\Framework\TestCase;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Admin\Pool;
use Sonata\AdminBundle\Mapper\BaseGroupedMapper;
use Sonata\AdminBundle\Tests\Fixtures\Mapper\AbstractDummyGroupedMapper;
use Sonata\AdminBundle\Translator\LabelTranslatorStrategyInterface;
use Symfony\Component\DependencyInjection\Container;
Expand All @@ -28,7 +27,7 @@
final class BaseGroupedMapperTest extends TestCase
{
/**
* @var AbstractDummyGroupedMapper<object>&MockObject
* @var AbstractDummyGroupedMapper&MockObject
*/
protected $baseGroupedMapper;

Expand Down Expand Up @@ -135,7 +134,7 @@ public function testRemoveGroup(): void
static::assertCount(1, $this->tabs);
static::assertCount(1, $this->groups);

$this->baseGroupedMapper->expects(self::once())->method('remove')->with('field1');
$this->baseGroupedMapper->expects(static::once())->method('remove')->with('field1');
$this->baseGroupedMapper->removeGroup('fooGroup1', 'fooTab1');

static::assertCount(1, $this->tabs);
Expand All @@ -157,7 +156,7 @@ public function testRemoveTab(): void
static::assertCount(1, $this->tabs);
static::assertCount(1, $this->groups);

$this->baseGroupedMapper->expects(self::once())->method('remove')->with('field1');
$this->baseGroupedMapper->expects(static::once())->method('remove')->with('field1');
$this->baseGroupedMapper->removeTab('fooTab1');

static::assertCount(0, $this->tabs);
Expand Down

0 comments on commit 2912772

Please sign in to comment.