Skip to content

Commit 41f1d96

Browse files
Use the new FlowTestCase in all the ETL tests (#1303)
* Use the new FlowTestCase * Fix import styling --------- Co-authored-by: Norbert Orzechowicz <[email protected]>
1 parent 7f1f94c commit 41f1d96

File tree

248 files changed

+507
-534
lines changed

Some content is hidden

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

248 files changed

+507
-534
lines changed

src/core/etl/tests/Flow/ETL/Tests/Integration/DataFrame/JoinCrossTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
namespace Flow\ETL\Tests\Integration\DataFrame;
66

77
use function Flow\ETL\DSL\{bool_entry, df, from_rows, int_entry, row, rows, str_entry};
8-
use Flow\ETL\Adapter\Elasticsearch\Tests\Integration\TestCase;
9-
use Flow\ETL\{Flow, Loader};
8+
use Flow\ETL\{Flow, Loader, Tests\FlowTestCase};
109

11-
final class JoinCrossTest extends TestCase
10+
final class JoinCrossTest extends FlowTestCase
1211
{
1312
public function test_cross_join() : void
1413
{

src/core/etl/tests/Flow/ETL/Tests/Integration/DataFrame/JoinEachTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
namespace Flow\ETL\Tests\Integration\DataFrame;
66

77
use function Flow\ETL\DSL\{df, from_rows, int_entry, row, rows, str_entry};
8-
use Flow\ETL\Adapter\Elasticsearch\Tests\Integration\TestCase;
98
use Flow\ETL\Join\Expression;
10-
use Flow\ETL\{DataFrame, DataFrameFactory, Flow, Loader, Rows};
9+
use Flow\ETL\{DataFrame, DataFrameFactory, Flow, Loader, Rows, Tests\FlowTestCase};
1110

12-
final class JoinEachTest extends TestCase
11+
final class JoinEachTest extends FlowTestCase
1312
{
1413
public function test_join_each() : void
1514
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/AddDynamicEntriesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use function Flow\ETL\DSL\{from_array, lit, to_memory};
88
use Flow\ETL\Flow;
99
use Flow\ETL\Memory\ArrayMemory;
10-
use PHPUnit\Framework\TestCase;
10+
use Flow\ETL\Tests\FlowTestCase;
1111

12-
final class AddDynamicEntriesTest extends TestCase
12+
final class AddDynamicEntriesTest extends FlowTestCase
1313
{
1414
public function test_adding_new_entries() : void
1515
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/AddJsonTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use function Flow\ETL\DSL\{from_array, lit, ref, to_memory};
88
use Flow\ETL\Flow;
99
use Flow\ETL\Memory\ArrayMemory;
10-
use PHPUnit\Framework\TestCase;
10+
use Flow\ETL\Tests\FlowTestCase;
1111

12-
final class AddJsonTest extends TestCase
12+
final class AddJsonTest extends FlowTestCase
1313
{
1414
public function test_add_json_into_existing_reference() : void
1515
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/AllTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use function Flow\ETL\DSL\{all, from_array, lit, ref, to_memory, when};
88
use Flow\ETL\Flow;
99
use Flow\ETL\Memory\ArrayMemory;
10-
use PHPUnit\Framework\TestCase;
10+
use Flow\ETL\Tests\FlowTestCase;
1111

12-
final class AllTest extends TestCase
12+
final class AllTest extends FlowTestCase
1313
{
1414
public function test_all_cases_found() : void
1515
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/AnyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use function Flow\ETL\DSL\{any, from_array, lit, ref, to_memory, when};
88
use Flow\ETL\Flow;
99
use Flow\ETL\Memory\ArrayMemory;
10-
use PHPUnit\Framework\TestCase;
10+
use Flow\ETL\Tests\FlowTestCase;
1111

12-
final class AnyTest extends TestCase
12+
final class AnyTest extends FlowTestCase
1313
{
1414
public function test_any_case_found() : void
1515
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/ArrayExpandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
use Flow\ETL\Flow;
99
use Flow\ETL\Function\ArrayExpand\ArrayExpand;
1010
use Flow\ETL\Memory\ArrayMemory;
11-
use PHPUnit\Framework\TestCase;
11+
use Flow\ETL\Tests\FlowTestCase;
1212

13-
final class ArrayExpandTest extends TestCase
13+
final class ArrayExpandTest extends FlowTestCase
1414
{
1515
public function test_expand_both() : void
1616
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/ArrayGetCollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use function Flow\ETL\DSL\{from_array, ref, to_memory};
88
use Flow\ETL\Flow;
99
use Flow\ETL\Memory\ArrayMemory;
10-
use PHPUnit\Framework\TestCase;
10+
use Flow\ETL\Tests\FlowTestCase;
1111

12-
final class ArrayGetCollectionTest extends TestCase
12+
final class ArrayGetCollectionTest extends FlowTestCase
1313
{
1414
public function test_array_get_collection() : void
1515
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/ArrayGetTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use function Flow\ETL\DSL\{from_array, ref, to_memory};
88
use Flow\ETL\Flow;
99
use Flow\ETL\Memory\ArrayMemory;
10-
use PHPUnit\Framework\TestCase;
10+
use Flow\ETL\Tests\FlowTestCase;
1111

12-
final class ArrayGetTest extends TestCase
12+
final class ArrayGetTest extends FlowTestCase
1313
{
1414
public function test_array_get() : void
1515
{

src/core/etl/tests/Flow/ETL/Tests/Integration/Function/ArrayKeyRenameTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use function Flow\ETL\DSL\{array_key_rename, from_array, optional, ref, to_memory};
88
use Flow\ETL\Flow;
99
use Flow\ETL\Memory\ArrayMemory;
10-
use PHPUnit\Framework\TestCase;
10+
use Flow\ETL\Tests\FlowTestCase;
1111

12-
final class ArrayKeyRenameTest extends TestCase
12+
final class ArrayKeyRenameTest extends FlowTestCase
1313
{
1414
public function test_array_key_rename() : void
1515
{

0 commit comments

Comments
 (0)