Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
fastnloud committed Sep 7, 2020
1 parent e17e8e2 commit 6a4e73f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/DependencyInjection/SonataAdminExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ public function testSetSkin(): void
$this->container->setParameter('kernel.bundles', []);
$this->load([
'options' => [
'skin' => 'skin-blue'
]
'skin' => 'skin-blue',
],
]);

$stylesheets = $this->container->getDefinition('sonata.admin.pool')->getArgument(3)['stylesheets'];
Expand All @@ -380,8 +380,8 @@ public function testSetDefaultSkin(): void
$this->container->setParameter('kernel.bundles', []);
$this->load([
'options' => [
'skin' => 'skin-black'
]
'skin' => 'skin-black',
],
]);

$stylesheets = $this->container->getDefinition('sonata.admin.pool')->getArgument(3)['stylesheets'];
Expand All @@ -398,8 +398,8 @@ public function testSetInvalidSkin(): void
$this->container->setParameter('kernel.bundles', []);
$this->load([
'options' => [
'skin' => 'skin-invalid'
]
'skin' => 'skin-invalid',
],
]);
}

Expand All @@ -412,12 +412,13 @@ private function getDefaultStylesheets(?string $skin = 'skin-black'): array
{
$this->load([
'options' => [
'skin' => $skin
]
'skin' => $skin,
],
]);

$defaultStylesheets = $this->defaultConfiguration['assets']['stylesheets'];
$defaultStylesheets[] = sprintf('bundles/sonataadmin/vendor/admin-lte/dist/css/skins/%s.min.css',
$defaultStylesheets[] = sprintf(
'bundles/sonataadmin/vendor/admin-lte/dist/css/skins/%s.min.css',
$this->container->getDefinition('sonata.admin.pool')->getArgument(3)['skin']
);

Expand Down

0 comments on commit 6a4e73f

Please sign in to comment.