Skip to content

Commit

Permalink
Test the bundle with and without the OGM (#12)
Browse files Browse the repository at this point in the history
* Make sure to test with and without the OGM

* typo
  • Loading branch information
Nyholm authored Jan 24, 2017
1 parent 7ea0a7b commit f0fbf5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ branches:
matrix:
fast_finish: true
include:
- php: 7.0
env: SYMFONY_VERSION="3.2.* graphaware/neo4j-php-ogm:^1.0"
- php: 7.0
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_VERSION=3.0.*

Expand Down
8 changes: 5 additions & 3 deletions Tests/Functional/BundleInitializationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ public function testRegisterBundle()
$client = $container->get('neo4j.client');
$this->assertInstanceOf(ClientInterface::class, $client);

$this->assertTrue($container->has('neo4j.entity_manager'));
$client = $container->get('neo4j.entity_manager');
$this->assertInstanceOf(EntityManager::class, $client);
if (class_exists('GraphAware\Neo4j\OGM\EntityManager')) {
$this->assertTrue($container->has('neo4j.entity_manager'));
$client = $container->get('neo4j.entity_manager');
$this->assertInstanceOf(EntityManager::class, $client);
}
}
}
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"require-dev": {
"phpunit/phpunit": "^5.4",
"symfony/symfony": "^3.0",
"graphaware/neo4j-php-ogm": "^1.0",
"matthiasnoback/symfony-dependency-injection-test": "^1.0"
},
"suggest": {
Expand Down

0 comments on commit f0fbf5e

Please sign in to comment.