PluginListCommand example


class PluginListCommandTest extends TestCase
{
    private MockObject&EntityRepository $pluginRepoMock;

    private PluginListCommand $command;

    protected function setUp(): void
    {
        parent::setUp();
        $this->pluginRepoMock = $this->createMock(EntityRepository::class);
        $this->command = new PluginListCommand($this->pluginRepoMock);
    }

    public function testCommand(): void
    {
        $plugin1 = new PluginEntity();
        $plugin2 = new PluginEntity();

        $entities = [
            $plugin1,
            $plugin2,
        ];

        
Home | Imprint | This part of the site doesn't use cookies.