Skip to content

Commit 3600d8c

Browse files
committed
Fixed Unit tests
Moved missing fixtures from SVC before the extraction
1 parent 29e98ef commit 3600d8c

File tree

6 files changed

+58
-1
lines changed

6 files changed

+58
-1
lines changed

tests/Unit/Console/Command/CompareSourceCommandTest/AbstractTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class AbstractTestCase extends \PHPUnit\Framework\TestCase
2727
protected function setUp()
2828
{
2929
$this->command = new CompareSourceCommand();
30-
$this->svcLogPath = 'TESTS_TEMP_DIR' . '/svc-' . time() . '.log';
30+
$this->svcLogPath = TESTS_TEMP_DIR . '/svc-' . time() . '.log';
3131
}
3232

3333
protected function tearDown()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/**
3+
*
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
namespace Test\Vcs;
8+
9+
/**
10+
* @api
11+
*/
12+
class ApiClass extends BaseApiClass
13+
{
14+
public function testFunction(): string
15+
{
16+
return 'ApiClass';
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Test\Vcs;
4+
5+
class BaseApiClass
6+
{
7+
public function testFunction(): string
8+
{
9+
return 'baseApiClass';
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/**
3+
*
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
namespace Test\Vcs;
8+
9+
/**
10+
* @api
11+
*/
12+
class ApiClass extends BaseApiClass
13+
{
14+
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Test\Vcs;
4+
5+
class BaseApiClass
6+
{
7+
public function testFunction(): string
8+
{
9+
return 'baseApiClass';
10+
}
11+
}

tests/Unit/tmp/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*
2+
!/.gitignore

0 commit comments

Comments
 (0)