Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

magento/graphql-ce#: Add missed annotation blocks to Magento\GraphQl\Customer\CreateCustomerTest #1051

Merged
merged 1 commit into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ChangeCustomerPasswordTest extends GraphQlAbstract
*/
private $customerRepository;

protected function setUp()
protected function setUp(): void
{
$this->customerTokenService = Bootstrap::getObjectManager()->get(CustomerTokenServiceInterface::class);
$this->accountManagement = Bootstrap::getObjectManager()->get(AccountManagementInterface::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CreateCustomerAddressTest extends GraphQlAbstract
*/
private $addressRepository;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Magento\TestFramework\TestCase\GraphQlAbstract;

/**
* Test for create customer functionallity
* Test for create customer functionality
*/
class CreateCustomerTest extends GraphQlAbstract
{
Expand All @@ -27,7 +27,7 @@ class CreateCustomerTest extends GraphQlAbstract
*/
private $customerRepository;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down Expand Up @@ -308,7 +308,7 @@ public function testCreateCustomerSubscribed()
$this->assertEquals(false, $response['createCustomer']['customer']['is_subscribed']);
}

public function tearDown()
public function tearDown(): void
{
$newEmail = 'new_customer@example.com';
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class DeleteCustomerAddressTest extends GraphQlAbstract
*/
private $lockCustomer;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GetAddressesTest extends GraphQlAbstract
*/
private $lockCustomer;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GetCustomerTest extends GraphQlAbstract
*/
private $customerRepository;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SubscriptionStatusTest extends GraphQlAbstract
*/
private $subscriberFactory;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down Expand Up @@ -162,7 +162,7 @@ private function getHeaderMap(string $email, string $password): array
return ['Authorization' => 'Bearer ' . $customerToken];
}

protected function tearDown()
protected function tearDown(): void
{
parent::tearDown();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class UpdateCustomerAddressTest extends GraphQlAbstract
*/
private $lockCustomer;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class UpdateCustomerTest extends GraphQlAbstract
*/
private $lockCustomer;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AddSimpleProductToCartTest extends GraphQlAbstract
*/
private $getMaskedQuoteIdByReservedOrderId;

protected function setUp()
protected function setUp(): void
{
$objectManager = Bootstrap::getObjectManager();
$this->customerTokenService = $objectManager->get(CustomerTokenServiceInterface::class);
Expand Down