setupEntityCollection example

$plugin2->setUniqueIdentifier('2');
        $plugin2->assign([
            'active' => false,
            'installedAt' => new \DateTimeImmutable('2019-05-23T00:00:00.000001Z'),
            'upgradeVersion' => '6.0.0',
            'name' => 'Shopware Next',
            'label' => 'swn',
            'version' => '5.5.3',
            'author' => 'Shopware AG',
        ]);

        $this->setupEntityCollection($entities);

        $commandTester = $this->executeCommand([]);
        static::assertSame(0, $commandTester->getStatusCode());
        static::assertStringEqualsFile(
            __DIR__ . '/../_assertion/PluginListCommandTest-testCommand.txt',
            implode("\n", array_map('trim', explode("\n", trim($commandTester->getDisplay())))) . "\n"
        );
    }

    public function testFilter(): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.