Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
AsyncTest.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
13 
14 class AsyncTest extends \PHPUnit\Framework\TestCase
15 {
19  private $async;
20 
24  protected function setUp()
25  {
26  $this->async = new Async('async');
27  }
28 
32  public function testGetCode()
33  {
34  $this->assertEquals('async', $this->async->getCode());
35  }
36 
45  public function testGetSchemaUrlPath($expected, $store = null)
46  {
47  $this->assertEquals($expected, $this->async->getSchemaUrlPath($store));
48  }
49 
53  public function getSchemaUrlPathProvider()
54  {
55  return [
56  [
57  '/rest/all/async/schema?services=all',
58  null
59  ],
60  [
61  '/rest/test/async/schema?services=all',
62  'test'
63  ]
64  ];
65  }
66 }