Skip to content

Commit f0fbf5e

Browse files
authored
Test the bundle with and without the OGM (#12)
* Make sure to test with and without the OGM * typo
1 parent 7ea0a7b commit f0fbf5e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ branches:
2525
matrix:
2626
fast_finish: true
2727
include:
28+
- php: 7.0
29+
env: SYMFONY_VERSION="3.2.* graphaware/neo4j-php-ogm:^1.0"
2830
- php: 7.0
2931
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_VERSION=3.0.*
3032

Tests/Functional/BundleInitializationTest.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ public function testRegisterBundle()
2323
$client = $container->get('neo4j.client');
2424
$this->assertInstanceOf(ClientInterface::class, $client);
2525

26-
$this->assertTrue($container->has('neo4j.entity_manager'));
27-
$client = $container->get('neo4j.entity_manager');
28-
$this->assertInstanceOf(EntityManager::class, $client);
26+
if (class_exists('GraphAware\Neo4j\OGM\EntityManager')) {
27+
$this->assertTrue($container->has('neo4j.entity_manager'));
28+
$client = $container->get('neo4j.entity_manager');
29+
$this->assertInstanceOf(EntityManager::class, $client);
30+
}
2931
}
3032
}

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"require-dev": {
2424
"phpunit/phpunit": "^5.4",
2525
"symfony/symfony": "^3.0",
26-
"graphaware/neo4j-php-ogm": "^1.0",
2726
"matthiasnoback/symfony-dependency-injection-test": "^1.0"
2827
},
2928
"suggest": {

0 commit comments

Comments
 (0)