Skip to content
This repository was archived by the owner on May 20, 2019. It is now read-only.

Commit 35928c2

Browse files
committed
magento-engcom/bulk-api#4 Support for Async operations in WebAPI
- Fixed static tests
1 parent b437162 commit 35928c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+104
-0
lines changed

app/code/Magento/AsynchronousOperations/Api/Data/AsyncResponseInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Api\Data;
810

911
/**

app/code/Magento/AsynchronousOperations/Api/Data/BulkStatusInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Api\Data;
810

911
/**

app/code/Magento/AsynchronousOperations/Api/Data/DetailedBulkStatusInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Api\Data;
810

911
/**

app/code/Magento/AsynchronousOperations/Api/Data/ItemStatusInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Api\Data;
810

911
/**

app/code/Magento/AsynchronousOperations/Api/Data/OperationStatusInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Api\Data;
810

911
/**

app/code/Magento/AsynchronousOperations/Model/AsyncResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\AsynchronousOperations\Api\Data\AsyncResponseInterface;

app/code/Magento/AsynchronousOperations/Model/BulkOperationsStatus.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\Framework\Exception\NoSuchEntityException;

app/code/Magento/AsynchronousOperations/Model/BulkStatus/Detailed.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model\BulkStatus;
810

911
use Magento\AsynchronousOperations\Api\Data\DetailedBulkStatusInterface;

app/code/Magento/AsynchronousOperations/Model/BulkStatus/Short.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model\BulkStatus;
810

911
use Magento\AsynchronousOperations\Api\Data\BulkStatusInterface;

app/code/Magento/AsynchronousOperations/Model/ConfigInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\Framework\Communication\ConfigInterface as CommunicationConfig;

app/code/Magento/AsynchronousOperations/Model/ItemStatus.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\AsynchronousOperations\Api\Data\ItemStatusInterface;

app/code/Magento/AsynchronousOperations/Model/MassConsumer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\Framework\App\ResourceConnection;

app/code/Magento/AsynchronousOperations/Model/MassPublisher.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\Framework\MessageQueue\MessageValidator;

app/code/Magento/AsynchronousOperations/Model/MassSchedule.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\AsynchronousOperations\Api\Data\OperationInterface;

app/code/Magento/AsynchronousOperations/Model/OperationStatus.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\AsynchronousOperations\Model;
810

911
use Magento\AsynchronousOperations\Api\Data\OperationInterface;

app/code/Magento/Swagger/Api/Data/SchemaTypeInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\Swagger\Api\Data;
710

811
use Magento\Framework\View\Element\Block\ArgumentInterface;

app/code/Magento/Swagger/Test/Unit/Block/IndexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\Swagger\Test\Unit\Block;
810

911
use Magento\Framework\App\RequestInterface;

app/code/Magento/Swagger/Test/Unit/Controller/Index/IndexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\Swagger\Test\Unit\Controller\Index;
810

911
class IndexTest extends \PHPUnit\Framework\TestCase

app/code/Magento/SwaggerWebapi/Model/SchemaType/Rest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\SwaggerWebapi\Model\SchemaType;
710

811
use Magento\Swagger\Api\Data\SchemaTypeInterface;

app/code/Magento/SwaggerWebapi/Test/Unit/Model/SchemaType/RestTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\SwaggerWebapi\Test\Unit\Model\SchemaType;
810

911
use Magento\Swagger\Api\Data\SchemaTypeInterface;

app/code/Magento/SwaggerWebapi/registration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
use \Magento\Framework\Component\ComponentRegistrar;
810

911
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_SwaggerWebapi', __DIR__);

app/code/Magento/SwaggerWebapiAsync/Model/SchemaType/Async.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\SwaggerWebapiAsync\Model\SchemaType;
710

811
use Magento\Swagger\Api\Data\SchemaTypeInterface;

app/code/Magento/SwaggerWebapiAsync/Test/Unit/Model/SchemaType/AsyncTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType;
810

911
use Magento\Swagger\Api\Data\SchemaTypeInterface;

app/code/Magento/SwaggerWebapiAsync/registration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
use \Magento\Framework\Component\ComponentRegistrar;
810

911
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_SwaggerWebapiAsync', __DIR__);

app/code/Magento/WebapiAsync/Code/Generator/Config/RemoteServiceReader/Communication.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Code\Generator\Config\RemoteServiceReader;
810

911
use Magento\Framework\Communication\ConfigInterface as CommunicationConfig;

app/code/Magento/WebapiAsync/Code/Generator/Config/RemoteServiceReader/Consumer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Code\Generator\Config\RemoteServiceReader;
810

911
use Magento\AsynchronousOperations\Model\ConfigInterface as WebApiAsyncConfig;

app/code/Magento/WebapiAsync/Code/Generator/Config/RemoteServiceReader/Publisher.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Code\Generator\Config\RemoteServiceReader;
810

911
use Magento\AsynchronousOperations\Model\ConfigInterface as WebApiAsyncConfig;

app/code/Magento/WebapiAsync/Code/Generator/Config/RemoteServiceReader/Topology.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Code\Generator\Config\RemoteServiceReader;
810

911
use Magento\AsynchronousOperations\Model\ConfigInterface as WebApiAsyncConfig;

app/code/Magento/WebapiAsync/Controller/Rest/Async/InputParamsResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Controller\Rest\Async;
810

911
use Magento\Framework\Webapi\ServiceInputProcessor;

app/code/Magento/WebapiAsync/Controller/Rest/AsynchronousRequestProcessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Controller\Rest;
810

911
use Magento\Framework\Exception\BulkException;

app/code/Magento/WebapiAsync/Controller/Rest/AsynchronousSchemaRequestProcessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Controller\Rest;
810

911
use Magento\Webapi\Model\Rest\Swagger\Generator;

app/code/Magento/WebapiAsync/Model/Config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Model;
810

911
use Magento\Webapi\Model\Cache\Type\Webapi as WebapiCache;

app/code/Magento/WebapiAsync/Model/ServiceConfig.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Model;
810

911
use Magento\Framework\Serialize\SerializerInterface;

app/code/Magento/WebapiAsync/Model/ServiceConfig/Converter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\WebapiAsync\Model\ServiceConfig;
710

811
/**

app/code/Magento/WebapiAsync/Model/ServiceConfig/Reader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\WebapiAsync\Model\ServiceConfig;
710

811
/**

app/code/Magento/WebapiAsync/Model/ServiceConfig/SchemaLocator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\WebapiAsync\Model\ServiceConfig;
710

811
use Magento\Framework\Module\Dir;

app/code/Magento/WebapiAsync/Plugin/ServiceMetadata.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Plugin;
810

911
use Magento\Webapi\Model\Config\Converter as WebapiConverter;

app/code/Magento/WebapiAsync/Test/Unit/Controller/PathProcessorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Test\Unit\Controller;
810

911
use Magento\Store\Model\Store;

app/code/Magento/WebapiAsync/Test/Unit/Controller/RestTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\WebapiAsync\Test\Unit\Controller;
810

911
use Magento\Authorization\Model\UserContextInterface;

app/code/Magento/WebapiAsync/Test/Unit/Model/ServiceConfig/ConverterTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\WebapiAsync\Test\Unit\Model\ServiceConfig;
710

811
class ConverterTest extends \PHPUnit\Framework\TestCase

app/code/Magento/WebapiAsync/Test/Unit/Model/ServiceConfig/ReaderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\WebapiAsync\Test\Unit\Model\ServiceConfig;
710

811
use Magento\Framework\Config\FileResolverInterface;

app/code/Magento/WebapiAsync/Test/Unit/Model/ServiceConfig/SchemaLocatorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\WebapiAsync\Test\Unit\Model\ServiceConfig;
710

811
class SchemaLocatorTest extends \PHPUnit\Framework\TestCase

app/code/Magento/WebapiAsync/Test/Unit/Model/ServiceConfig/_files/Converter/webapi_async.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
return [
710
'services' => [
811
\Magento\Customer\Api\CustomerRepositoryInterface::class => [

0 commit comments

Comments
 (0)