Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update ZendDb mapper to override the mapper alias properly prior to r…

…unning
  • Loading branch information...
commit 2668989a8ed59cd5b1997d4c9ceb0becdfc1860c 1 parent 7aaa513
@adamlundrigan adamlundrigan authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/CdliTwoStageSignupTest/Mapper/EmailVerificationTest.php
View
8 tests/CdliTwoStageSignupTest/Mapper/EmailVerificationTest.php
@@ -4,6 +4,7 @@
use CdliTwoStageSignupTest\Framework\MapperTestCase;
use CdliTwoStageSignup\Entity\EmailVerification as Entity;
use Zend\Db\Adapter\Adapter as DbAdapter;
+use Zend\ServiceManager\ServiceManager;
class EmailVerificationTest extends MapperTestCase
{
@@ -12,6 +13,13 @@ public function setUp()
{
parent::setUp();
+ // Override the selected backend adapter
+ $sl = $this->getServiceLocator();
+ if ($sl instanceof ServiceManager) {
+ $sl->setAllowOverride(true);
+ $sl->setAlias('cdlitwostagesignup_ev_modelmapper', 'cdlitwostagesignup_ev_modelmapper_zenddb');
+ }
+
date_default_timezone_set('GMT');
$this->model = new Entity();
Please sign in to comment.
Something went wrong with that request. Please try again.