From b081288188bb1744c9d7bd075aa5936e0ccbb9c4 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 14 Nov 2014 22:44:25 -0500 Subject: Use Pimple instead of Core\Registry and add Monolog for logging --- tests/units/NotificationTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/units/NotificationTest.php') diff --git a/tests/units/NotificationTest.php b/tests/units/NotificationTest.php index 6c0539c2..770a9829 100644 --- a/tests/units/NotificationTest.php +++ b/tests/units/NotificationTest.php @@ -11,10 +11,10 @@ class NotificationTest extends Base { public function testGetUsersWithNotification() { - $u = new User($this->registry); - $p = new Project($this->registry); - $n = new Notification($this->registry); - $pp = new ProjectPermission($this->registry); + $u = new User($this->container); + $p = new Project($this->container); + $n = new Notification($this->container); + $pp = new ProjectPermission($this->container); $this->assertEquals(1, $p->create(array('name' => 'UnitTest1'))); @@ -51,10 +51,10 @@ class NotificationTest extends Base public function testGetUserList() { - $u = new User($this->registry); - $p = new Project($this->registry); - $pp = new ProjectPermission($this->registry); - $n = new Notification($this->registry); + $u = new User($this->container); + $p = new Project($this->container); + $pp = new ProjectPermission($this->container); + $n = new Notification($this->container); $this->assertEquals(1, $p->create(array('name' => 'UnitTest1'))); $this->assertEquals(2, $p->create(array('name' => 'UnitTest2'))); -- cgit v1.2.3