use PHPUnit\Framework\TestCase;
use Shopware\Core\Framework\Store\Struct\ExtensionStruct;
use Shopware\Core\Framework\Store\Struct\PermissionCollection;
/**
* @internal
*/
class ExtensionStructTest extends TestCase
{ public function testFromArray(): void
{ $detailData =
$this->
getDetailFixture();
$struct = ExtensionStruct::
fromArray($detailData);
static::
assertInstanceOf(ExtensionStruct::
class,
$struct);
} /**
* @dataProvider badValuesProvider
*/
public function testItThrowsOnMissingData(array
$badValues): void
{ static::
expectException(\InvalidArgumentException::
class);