setDbConnectionParams( array( 'driver' => 'pdo_sqlite', 'path' => ':memory:', ) ) ->build(); $this->module = new ActivityPubModule( $config ); } public function testItInjects() { $entityManager = $this->module->get( EntityManager::class ); $this->assertNotNull( $entityManager ); $this->assertInstanceOf( EntityManager::class, $entityManager ); $router = $this->module->get( Router::class ); $this->assertNotNull( $router ); $this->assertInstanceOf( Router::class, $router ); } }