Skip to content

Commit 54342e8

Browse files
tboliermarcgeurts
authored andcommitted
Remove double tests for transformation unit tests
1 parent 5da8cd3 commit 54342e8

File tree

4 files changed

+0
-109
lines changed

4 files changed

+0
-109
lines changed

test/integration/Transformation/IsEmptyTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,4 @@ public function testIsNotEmpty()
3434

3535
$this->assertFalse($res->getData());
3636
}
37-
38-
/**
39-
* @throws \Exception
40-
*/
41-
public function testFilterIsNotEmpty()
42-
{
43-
$this->insertDocument(1);
44-
$this->insertDocument(2);
45-
$this->insertDocument(3);
46-
$this->insertDocument(4);
47-
$this->insertDocument(5);
48-
49-
$res = $this->r()
50-
->table('tabletest')
51-
->filter(['description' => 'A document description.'])
52-
->isEmpty()
53-
->run();
54-
55-
$this->assertFalse($res->getData());
56-
}
5737
}

test/integration/Transformation/LimitTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,4 @@ public function testLimit(): void
2828

2929
$this->assertCount(2, $cursor);
3030
}
31-
32-
/**
33-
* @return void
34-
* @throws \Exception
35-
*/
36-
public function testFilterAndLimit(): void
37-
{
38-
$this->insertDocument(1);
39-
$this->insertDocument(2);
40-
$this->insertDocument(3);
41-
$this->insertDocument(4);
42-
$this->insertDocument(5);
43-
44-
/** @var Cursor $cursor */
45-
$cursor = $this->r()
46-
->table('tabletest')
47-
->filter(['description' => 'A document description.'])
48-
->limit(2)
49-
->run();
50-
51-
$this->assertCount(2, $cursor);
52-
}
5331
}

test/integration/Transformation/OrderByTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,4 @@ public function testOrderByAsc(): void
4949

5050
$this->assertArraySubset(['id' => 1], $res->getData()[0]);
5151
}
52-
53-
/**
54-
* @return void
55-
* @throws \Exception
56-
*/
57-
public function testFilterAndOrderByAsc(): void
58-
{
59-
$this->insertDocument(5);
60-
$this->insertDocument(4);
61-
$this->insertDocument(3);
62-
$this->insertDocument(2);
63-
$this->insertDocument(1);
64-
65-
/** @var ResponseInterface $res */
66-
$res = $this->r()
67-
->table('tabletest')
68-
->filter(['description' => 'A document description.'])
69-
->orderBy($this->r()->asc('id'))
70-
->run();
71-
72-
$this->assertArraySubset(['id' => 1], $res->getData()[0]);
73-
}
7452
}

test/integration/Transformation/SkipTest.php

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -29,49 +29,4 @@ public function testSkip(): void
2929

3030
$this->assertCount(3, $cursor);
3131
}
32-
33-
/**
34-
* @return void
35-
* @throws \Exception
36-
*/
37-
public function testFilterAndSkip(): void
38-
{
39-
$this->insertDocument(1);
40-
$this->insertDocument(2);
41-
$this->insertDocument(3);
42-
$this->insertDocument(4);
43-
$this->insertDocument(5);
44-
45-
/** @var Cursor $cursor */
46-
$cursor = $this->r()
47-
->table('tabletest')
48-
->filter(['description' => 'A document description.'])
49-
->skip(2)
50-
->run();
51-
52-
$this->assertCount(3, $cursor);
53-
}
54-
55-
/**
56-
* @return void
57-
* @throws \Exception
58-
*/
59-
public function testSkipAndOrderBy(): void
60-
{
61-
$this->insertDocument(1);
62-
$this->insertDocument(2);
63-
$this->insertDocument(3);
64-
$this->insertDocument(4);
65-
$this->insertDocument(5);
66-
67-
/** @var ResponseInterface $res */
68-
$res = $this->r()
69-
->table('tabletest')
70-
->filter(['description' => 'A document description.'])
71-
->skip(2)
72-
->orderBy($this->r()->asc('id'))
73-
->run();
74-
75-
$this->assertArraySubset(['id' => 1], $res->getData()[0]);
76-
}
7732
}

0 commit comments

Comments
 (0)