Skip to content

Commit 7062d96

Browse files
author
Stanislav Idolov
committed
MAGETWO-87343: Uncaught fatal error in SOAP tests
1 parent 32bcc72 commit 7062d96

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductCustomOptionRepositoryTest.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
@@ -412,6 +411,7 @@ public function validOptionDataProvider()
412411
*/
413412
public function testUpdateNegative($optionData, $message, $exceptionCode)
414413
{
414+
$this->_markTestAsRestOnly();
415415
$productSku = 'simple';
416416
/** @var ProductRepository $productRepository */
417417
$productRepository = $this->objectManager->create(ProductRepository::class);
@@ -424,18 +424,9 @@ public function testUpdateNegative($optionData, $message, $exceptionCode)
424424
'resourcePath' => '/V1/products/options/' . $optionId,
425425
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_PUT,
426426
],
427-
'soap' => [
428-
'service' => self::SERVICE_NAME,
429-
'serviceVersion' => 'V1',
430-
'operation' => self::SERVICE_NAME . 'Save',
431-
],
432427
];
433428

434-
if (TESTS_WEB_API_ADAPTER == self::ADAPTER_SOAP) {
435-
$this->setExpectedException('SoapFault');
436-
} else {
437-
$this->setExpectedException('Exception', $message, $exceptionCode);
438-
}
429+
$this->setExpectedException('Exception', $message, $exceptionCode);
439430
$this->_webApiCall($serviceInfo, ['option' => $optionData]);
440431
}
441432

dev/tests/api-functional/testsuite/Magento/Integration/Model/IntegrationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class IntegrationTest extends \Magento\TestFramework\TestCase\WebapiAbstract
1313
/** @var \Magento\Integration\Model\Integration */
1414
protected $integration;
1515

16-
1716
protected function setUp()
1817
{
1918
$objectManager = Bootstrap::getObjectManager();

dev/tests/static/testsuite/Magento/Test/Legacy/CopyrightTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testCopyright()
1717
$invoker(
1818
function ($filename) {
1919
$fileText = file_get_contents($filename);
20-
if (strpos($fileText, 'Copyright © 2013-' . date('Y')) === false) {
20+
if (strpos($fileText, 'Copyright © Magento, Inc. All rights reserved.') === false) {
2121
$this->fail('Copyright is missing or has wrong year in ' . $filename);
2222
}
2323
},

0 commit comments

Comments
 (0)