Skip to content

Commit 71ffd40

Browse files
author
fernando.carletti
committed
fix: unit tests
1 parent 829932b commit 71ffd40

17 files changed

+18
-45
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"illuminate/support": "~4.0|~5.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit" : "4.8.36",
18+
"phpunit/phpunit" : "~7.0",
1919
"mockery/mockery" : "0.9.9",
2020
"satooshi/php-coveralls": "1.0.1"
2121
},

phpunit.xml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Test Suite">

tests/TestCase.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
class TestCase extends PHPUnit_Framework_TestCase
3+
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
4+
5+
class TestCase extends PHPUnitTestCase
46
{
57
/**
68
* The api version.

tests/collections/ConfigMapCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class ConfigMapCollectionTest extends TestCase
1212

1313
protected function getConfigMapCollection()
1414
{
15-
$configMapCollection = new ConfigMapCollection([
16-
'items' => $this->items,
17-
]);
15+
$configMapCollection = new ConfigMapCollection($this->items);
1816

1917
return $configMapCollection;
2018
}

tests/collections/DeploymentCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class DeploymentCollectionTest extends TestCase
1212

1313
protected function getDeploymentCollection()
1414
{
15-
$deploymentCollection = new DeploymentCollection([
16-
'items' => $this->items,
17-
]);
15+
$deploymentCollection = new DeploymentCollection($this->items);
1816

1917
return $deploymentCollection;
2018
}

tests/collections/EndpointCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class EndpointCollectionTest extends TestCase
1212

1313
protected function getEndpointCollection()
1414
{
15-
$nodeCollection = new EndpointCollection([
16-
'items' => $this->items,
17-
]);
15+
$nodeCollection = new EndpointCollection($this->items);
1816

1917
return $nodeCollection;
2018
}

tests/collections/EventCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class EventCollectionTest extends TestCase
1212

1313
protected function getEventCollection()
1414
{
15-
$eventCollection = new EventCollection([
16-
'items' => $this->items,
17-
]);
15+
$eventCollection = new EventCollection($this->items);
1816

1917
return $eventCollection;
2018
}

tests/collections/IngressCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class IngressCollectionTest extends TestCase
1212

1313
protected function getIngressCollection()
1414
{
15-
$ingressCollection = new IngressCollection([
16-
'items' => $this->items,
17-
]);
15+
$ingressCollection = new IngressCollection($this->items);
1816

1917
return $ingressCollection;
2018
}

tests/collections/JobCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class JobCollectionTest extends TestCase
1212

1313
protected function getJobCollection()
1414
{
15-
$jobCollection = new JobCollection([
16-
'items' => $this->items,
17-
]);
15+
$jobCollection = new JobCollection($this->items);
1816

1917
return $jobCollection;
2018
}

tests/collections/NamespaceCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class NamespaceCollectionTest extends TestCase
1212

1313
protected function getNamespaceCollection()
1414
{
15-
$namespaceCollection = new NamespaceCollection([
16-
'items' => $this->items,
17-
]);
15+
$namespaceCollection = new NamespaceCollection($this->items);
1816

1917
return $namespaceCollection;
2018
}

tests/collections/NetworkPolicyCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class NetworkPolicyCollectionTest extends TestCase
1212

1313
protected function getNetworkPolicyCollection()
1414
{
15-
$podCollection = new NetworkPolicyCollection([
16-
'items' => $this->items,
17-
]);
15+
$podCollection = new NetworkPolicyCollection($this->items);
1816

1917
return $podCollection;
2018
}

tests/collections/NodeCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class NodeCollectionTest extends TestCase
1212

1313
protected function getNodeCollection()
1414
{
15-
$nodeCollection = new NodeCollection([
16-
'items' => $this->items,
17-
]);
15+
$nodeCollection = new NodeCollection($this->items);
1816

1917
return $nodeCollection;
2018
}

tests/collections/PodCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class PodCollectionTest extends TestCase
1212

1313
protected function getPodCollection()
1414
{
15-
$podCollection = new PodCollection([
16-
'items' => $this->items,
17-
]);
15+
$podCollection = new PodCollection($this->items);
1816

1917
return $podCollection;
2018
}

tests/collections/ReplicaSetCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class ReplicaSetCollectionTest extends TestCase
1212

1313
protected function getReplicaSetCollection()
1414
{
15-
$replicaSetCollection = new ReplicaSetCollection([
16-
'items' => $this->items,
17-
]);
15+
$replicaSetCollection = new ReplicaSetCollection($this->items);
1816

1917
return $replicaSetCollection;
2018
}

tests/collections/ReplicationControllerCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class ReplicationControllerCollectionTest extends TestCase
1212

1313
protected function getReplicationControllerCollection()
1414
{
15-
$replicationControllerCollection = new ReplicationControllerCollection([
16-
'items' => $this->items,
17-
]);
15+
$replicationControllerCollection = new ReplicationControllerCollection($this->items);
1816

1917
return $replicationControllerCollection;
2018
}

tests/collections/SecretCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class SecretCollectionTest extends TestCase
1212

1313
protected function getSecretCollection()
1414
{
15-
$secretCollection = new SecretCollection([
16-
'items' => $this->items,
17-
]);
15+
$secretCollection = new SecretCollection($this->items);
1816

1917
return $secretCollection;
2018
}

tests/collections/ServiceCollectionTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class ServiceCollectionTest extends TestCase
1212

1313
protected function getServiceCollection()
1414
{
15-
$serviceCollection = new ServiceCollection([
16-
'items' => $this->items,
17-
]);
15+
$serviceCollection = new ServiceCollection($this->items);
1816

1917
return $serviceCollection;
2018
}

0 commit comments

Comments
 (0)