Skip to content

Commit

Permalink
Return the whole application build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Oct 5, 2022
1 parent 368a280 commit 011ad0b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/application.yml
Expand Up @@ -1024,7 +1024,7 @@ jobs:
name: Build assets
run: |
bin/console assets:install public -vvv
GULP_ENV=prod yarn build
yarn run encore production
notify-about-build-failure:
runs-on: ubuntu-latest
Expand Down
Expand Up @@ -24,7 +24,7 @@ public function process(ContainerBuilder $container): void
$this->makeServicePublic('security.token_storage', $container);
$this->makeServicePublic('validator', $container);

if (str_starts_with($container->getParameter('kernel.environment'), 'test')) {
if (str_starts_with((string) $container->getParameter('kernel.environment'), 'test')) {
$this->makeServicePublic('filesystem', $container);
$this->makeServicePublic('session.factory', $container);
$this->makeServicePublic('sylius.command_bus', $container);
Expand Down
10 changes: 5 additions & 5 deletions tests/Api/Shop/OrdersTest.php
Expand Up @@ -38,7 +38,7 @@ public function it_gets_an_order(): void
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue);
$pickupCartCommand->setChannelCode('WEB');
Expand Down Expand Up @@ -74,7 +74,7 @@ public function it_gets_order_items(): void
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue);
$pickupCartCommand->setChannelCode('WEB');
Expand All @@ -99,7 +99,7 @@ public function it_gets_order_adjustments(): void
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue);
$pickupCartCommand->setChannelCode('WEB');
Expand All @@ -123,7 +123,7 @@ public function it_gets_order_item_adjustments(): void
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue);
$pickupCartCommand->setChannelCode('WEB');
Expand Down Expand Up @@ -162,7 +162,7 @@ public function it_allows_to_add_items_to_order(): void
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue);
$pickupCartCommand->setChannelCode('WEB');
Expand Down
6 changes: 3 additions & 3 deletions tests/Api/Shop/PaymentMethodsTest.php
Expand Up @@ -29,7 +29,7 @@ public function it_gets_available_payment_methods_from_payments(): void
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue, 'en_US');
$pickupCartCommand->setChannelCode('WEB');
Expand Down Expand Up @@ -62,7 +62,7 @@ public function it_gets_empty_response_if_only_payment_id_is_set_in_filter(): vo
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue, 'en_US');
$pickupCartCommand->setChannelCode('WEB');
Expand Down Expand Up @@ -95,7 +95,7 @@ public function it_gets_empty_response_if_only_cart_token_is_set_in_filter(): vo
$tokenValue = 'nAWw2jewpA';

/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue, 'en_US');
$pickupCartCommand->setChannelCode('WEB');
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/Shop/ShippingMethodsTest.php
Expand Up @@ -190,7 +190,7 @@ public function it_returns_empty_list_of_available_shipping_methods_for_not_exis
private function getCartAndPutItemForCustomer(string $tokenValue, string $customer): void
{
/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue, 'en_US');
$pickupCartCommand->setChannelCode('WEB');
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/Utils/OrderPlacerTrait.php
Expand Up @@ -30,7 +30,7 @@ trait OrderPlacerTrait
protected function placeOrder(string $tokenValue, string $email = 'sylius@example.com'): void
{
/** @var MessageBusInterface $commandBus */
$commandBus = $this->get('sylius.command_bus.public');
$commandBus = $this->get('sylius.command_bus');

$pickupCartCommand = new PickupCart($tokenValue, 'en_US');
$pickupCartCommand->setChannelCode('WEB');
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/SessionAwareAjaxTest.php
Expand Up @@ -18,7 +18,7 @@ protected function setUp(): void
try {
$requestStack->getSession();
} catch (SessionNotFoundException) {
$session = self::$kernel->getContainer()->get('session_factory.public')->createSession();
$session = self::$kernel->getContainer()->get('session.factory')->createSession();
$request = new Request();
$request->setSession($session);
$requestStack->push($request);
Expand Down

0 comments on commit 011ad0b

Please sign in to comment.