Skip to content

Commit

Permalink
NGSTACK-342 update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iherak authored and RandyCupic committed Jan 20, 2021
1 parent 1d1ee52 commit 0586672
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@
"cloudinary/cloudinary_php": "^1.0"
},
"require-dev": {
"ezsystems/legacy-bridge": "^1.3.0",
"ezsystems/legacy-bridge": "^2.0",
"netgen/open-graph-bundle": "^1.0",
"netgen/admin-ui-bundle": "^2.0",
"matthiasnoback/symfony-config-test": "^2.0",
"matthiasnoback/symfony-dependency-injection-test": "^1.0",
"matthiasnoback/symfony-dependency-injection-test": "^3.0",
"mikey179/vfsstream": "^1.0",
"phpunit/phpunit": "^5.7",
"phpunit/phpunit": "^7.0",
"friendsofphp/php-cs-fixer": "^2.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist → phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</filter>
<logging>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-html" target="build/coverage" />
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function testConnectionHandling()
$handler = $this->getMockForAbstractClass(DatabaseHandler::class);

$this->storage->setConnection($handler);

// Avoid detecting risky tests
$this->assertTrue(true);
}

/**
Expand All @@ -66,6 +69,9 @@ public function testConnectionHandlingWithInvalidConnection()
$handler = new \stdClass();

$this->storage->setConnection($handler);

// Avoid detecting risky tests
$this->assertTrue(true);
}

public function testStoreFieldDataInsertNew()
Expand Down
3 changes: 3 additions & 0 deletions tests/DependencyInjection/Compiler/XslRegisterPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function testCompilerPassWithoutExistingXslConfig()
$this->setParameter('ezpublish.siteaccess.list', $siteaccessList);

$this->compile();

// Avoid detecting risky tests
$this->assertTrue(true);
}

protected function registerCompilerPass(ContainerBuilder $container)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
use Netgen\Bundle\RemoteMediaBundle\RemoteMedia\Provider\Cloudinary\Gateway\CloudinaryApiGateway;
use Netgen\Bundle\RemoteMediaBundle\RemoteMedia\Provider\Cloudinary\Search\Query;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_Constraint_IsAnything;
use PHPUnit_Framework_Constraint_Or;
use PHPUnit\Framework\Constraint\LogicalOr;

class CloudinaryApiGatewayTest extends TestCase
{
Expand Down Expand Up @@ -58,7 +57,7 @@ public function setUp()

private function setUpSearch()
{
$constraints = new PHPUnit_Framework_Constraint_Or();
$constraints = new LogicalOr();
$constraints->setConstraints([
'expression', 'max_results', 'with_field'
]);
Expand Down

0 comments on commit 0586672

Please sign in to comment.