diff --git a/dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockAdminUserWhenEditingIntegrationTest.php b/dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockAdminUserWhenEditingIntegrationTest.php index 5f803d634fa2a..d1e9c9dee9ec2 100644 --- a/dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockAdminUserWhenEditingIntegrationTest.php +++ b/dev/tests/functional/tests/app/Magento/Security/Test/TestCase/LockAdminUserWhenEditingIntegrationTest.php @@ -84,7 +84,7 @@ public function __inject( /** * Run Lock user when creating new integration test. * - * @param Integration $initintegration + * @param Integration $initIntegration * @param Integration $integration * @param int $attempts * @param User $customAdmin @@ -92,7 +92,7 @@ public function __inject( * @return void */ public function test( - Integration $initintegration, + Integration $initIntegration, Integration $integration, $attempts, User $customAdmin, @@ -106,7 +106,7 @@ public function test( ['configData' => $this->configData] )->run(); $customAdmin->persist(); - $initintegration->persist(); + $initIntegration->persist(); // login to backend with new user $this->adminAuthLogin->open(); @@ -114,7 +114,7 @@ public function test( $this->adminAuthLogin->getLoginBlock()->submit(); // Steps - $filter = ['name' => $initintegration->getName()]; + $filter = ['name' => $initIntegration->getName()]; $this->integrationIndexPage->open(); $this->integrationIndexPage->getIntegrationGrid()->searchAndOpen($filter); for ($i = 0; $i < $attempts; $i++) { diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertCityBasedShippingRateChanged.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertCityBasedShippingRateChanged.php index a449f79ef68f3..482b7d213e671 100644 --- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertCityBasedShippingRateChanged.php +++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertCityBasedShippingRateChanged.php @@ -30,11 +30,11 @@ public function processAssert(CheckoutOnepage $checkoutOnepage, $shippingMethod, 'Shipping rate has not been changed.' ); } - $shippingAvaialability = $isShippingAvailable ? 'avaiable' : 'unavailable'; + $shippingAvailability = $isShippingAvailable ? 'avaiable' : 'unavailable'; \PHPUnit_Framework_Assert::assertEquals( $isShippingAvailable, $checkoutOnepage->getShippingMethodBlock()->isShippingMethodAvaiable($shippingMethod), - "Shipping rates for {$shippingMethod['shipping_service']} should be $shippingAvaialability." + "Shipping rates for {$shippingMethod['shipping_service']} should be $shippingAvailability." ); } diff --git a/dev/tests/integration/testsuite/Magento/AdminNotification/_files/notifications.php b/dev/tests/integration/testsuite/Magento/AdminNotification/_files/notifications.php index 4bb05645ed105..6615c24320b21 100644 --- a/dev/tests/integration/testsuite/Magento/AdminNotification/_files/notifications.php +++ b/dev/tests/integration/testsuite/Magento/AdminNotification/_files/notifications.php @@ -4,34 +4,34 @@ * See COPYING.txt for license details. */ $om = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); -$mesasge = $om->create(\Magento\AdminNotification\Model\Inbox::class); -$mesasge->setSeverity( +$message = $om->create(\Magento\AdminNotification\Model\Inbox::class); +$message->setSeverity( \Magento\Framework\Notification\MessageInterface::SEVERITY_CRITICAL )->setTitle( 'Unread Critical 1' )->save(); -$mesasge = $om->create(\Magento\AdminNotification\Model\Inbox::class); -$mesasge->setSeverity(\Magento\Framework\Notification\MessageInterface::SEVERITY_MAJOR) +$message = $om->create(\Magento\AdminNotification\Model\Inbox::class); +$message->setSeverity(\Magento\Framework\Notification\MessageInterface::SEVERITY_MAJOR) ->setTitle('Unread Major 1') ->save(); -$mesasge = $om->create(\Magento\AdminNotification\Model\Inbox::class); -$mesasge->setSeverity( +$message = $om->create(\Magento\AdminNotification\Model\Inbox::class); +$message->setSeverity( \Magento\Framework\Notification\MessageInterface::SEVERITY_CRITICAL )->setTitle( 'Unread Critical 2' )->save(); -$mesasge = $om->create(\Magento\AdminNotification\Model\Inbox::class); -$mesasge->setSeverity( +$message = $om->create(\Magento\AdminNotification\Model\Inbox::class); +$message->setSeverity( \Magento\Framework\Notification\MessageInterface::SEVERITY_CRITICAL )->setTitle( 'Unread Critical 3' )->save(); -$mesasge = $om->create(\Magento\AdminNotification\Model\Inbox::class); -$mesasge->setSeverity( +$message = $om->create(\Magento\AdminNotification\Model\Inbox::class); +$message->setSeverity( \Magento\Framework\Notification\MessageInterface::SEVERITY_CRITICAL )->setTitle( 'Read Critical 1' @@ -39,13 +39,13 @@ 1 )->save(); -$mesasge = $om->create(\Magento\AdminNotification\Model\Inbox::class); -$mesasge->setSeverity(\Magento\Framework\Notification\MessageInterface::SEVERITY_MAJOR) +$message = $om->create(\Magento\AdminNotification\Model\Inbox::class); +$message->setSeverity(\Magento\Framework\Notification\MessageInterface::SEVERITY_MAJOR) ->setTitle('Unread Major 2') ->save(); -$mesasge = $om->create(\Magento\AdminNotification\Model\Inbox::class); -$mesasge->setSeverity( +$message = $om->create(\Magento\AdminNotification\Model\Inbox::class); +$message->setSeverity( \Magento\Framework\Notification\MessageInterface::SEVERITY_CRITICAL )->setTitle( 'Removed Critical 1' diff --git a/dev/tests/integration/testsuite/Magento/Catalog/Model/Product/ImageTest.php b/dev/tests/integration/testsuite/Magento/Catalog/Model/Product/ImageTest.php index 1c4db8b5b3215..f3753d929c34e 100644 --- a/dev/tests/integration/testsuite/Magento/Catalog/Model/Product/ImageTest.php +++ b/dev/tests/integration/testsuite/Magento/Catalog/Model/Product/ImageTest.php @@ -23,15 +23,15 @@ public function testSetBaseFilePlaceholder() $model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( \Magento\Catalog\Model\Product\Image::class ); - /** @var \Magento\Catalog\Model\View\Asset\Placeholder $defualtPlaceholder */ - $defualtPlaceholder = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() + /** @var \Magento\Catalog\Model\View\Asset\Placeholder $defaultPlaceholder */ + $defaultPlaceholder = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() ->create(\Magento\Catalog\Model\View\Asset\Placeholder::class, ['type' => 'image'] ); $model->setDestinationSubdir('image'); $model->setBaseFile(''); - $this->assertEquals($defualtPlaceholder->getSourceFile(), $model->getBaseFile()); + $this->assertEquals($defaultPlaceholder->getSourceFile(), $model->getBaseFile()); return $model; } diff --git a/dev/tests/integration/testsuite/Magento/Framework/Mview/View/ChangelogTest.php b/dev/tests/integration/testsuite/Magento/Framework/Mview/View/ChangelogTest.php index b26a1cda2476d..c047bd4fffd3d 100644 --- a/dev/tests/integration/testsuite/Magento/Framework/Mview/View/ChangelogTest.php +++ b/dev/tests/integration/testsuite/Magento/Framework/Mview/View/ChangelogTest.php @@ -126,14 +126,14 @@ public function testGetList() $this->assertEquals(0, $this->model->getVersion()); //the same that a table is empty $changelogName = $this->resource->getTableName($this->model->getName()); - $testChengelogData = [ + $testChangelogData = [ ['version_id' => 1, 'entity_id' => 1], ['version_id' => 2, 'entity_id' => 1], ['version_id' => 3, 'entity_id' => 2], ['version_id' => 4, 'entity_id' => 3], ['version_id' => 5, 'entity_id' => 1], ]; - foreach ($testChengelogData as $data) { + foreach ($testChangelogData as $data) { $this->connection->insert($changelogName, $data); } $this->assertEquals(5, $this->model->getVersion());