add authentication storage factory config and tests #41

Merged
merged 3 commits into from Oct 4, 2012

2 participants

@superdweebie

Note that travis fails because this PR relies on doctrine/DoctrineModule#95

@Ocramius Ocramius commented on an outdated diff Sep 30, 2012
...uleTest/Doctrine/AuthenticationAdapterFactoryTest.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace DoctrineMongoODMModuleTest\Doctrine;
+
+use DoctrineMongoODMModuleTest\AbstractTest;
+use Zend\Authentication\Adapter\AdapterInterface;
+
+class AuthenticationAdapterFactoryTest extends AbstractTest
+{
+ public function testAuthenticationAdapterFactory(){
+
+ $adapter = $this->serviceManager->get('doctrine.authenticationadapter.odm_default');
+ $this->assertTrue($adapter instanceof AdapterInterface);
@Ocramius
Doctrine member
Ocramius added a line comment Sep 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@Ocramius Ocramius commented on an outdated diff Sep 30, 2012
...uleTest/Doctrine/AuthenticationStorageFactoryTest.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace DoctrineMongoODMModuleTest\Doctrine;
+
+use DoctrineMongoODMModuleTest\AbstractTest;
+use Zend\Authentication\Storage\StorageInterface;
+
+class AuthenticationStorageFactoryTest extends AbstractTest
+{
+ public function testAuthenticationStorageFactory(){
+
+ $storage = $this->serviceManager->get('doctrine.authenticationstorage.odm_default');
+ $this->assertTrue($storage instanceof StorageInterface);
@Ocramius
Doctrine member
Ocramius added a line comment Sep 30, 2012

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@superdweebie

Ok, I think this one is good once we are happy to merge DoctrineModule #95

@Ocramius Ocramius merged commit 9b02c3a into doctrine:master Oct 4, 2012

1 check failed

Details default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment