diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-28 19:48:22 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-28 19:48:22 -0400 |
commit | 14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch) | |
tree | 79972d53f6091a1ddb17f64a6a05a5523f5d5168 /tests/units/Subscriber/LdapUserPhotoSubscriberTest.php | |
parent | 936376ffe74c583d3cb819e98f53a85137fdf8bc (diff) |
Rename all models
Diffstat (limited to 'tests/units/Subscriber/LdapUserPhotoSubscriberTest.php')
-rw-r--r-- | tests/units/Subscriber/LdapUserPhotoSubscriberTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/units/Subscriber/LdapUserPhotoSubscriberTest.php b/tests/units/Subscriber/LdapUserPhotoSubscriberTest.php index df44d232..41f40844 100644 --- a/tests/units/Subscriber/LdapUserPhotoSubscriberTest.php +++ b/tests/units/Subscriber/LdapUserPhotoSubscriberTest.php @@ -2,7 +2,7 @@ use Kanboard\Core\Security\Role; use Kanboard\Event\UserProfileSyncEvent; -use Kanboard\Model\User; +use Kanboard\Model\UserModel; use Kanboard\Subscriber\LdapUserPhotoSubscriber; use Kanboard\User\DatabaseUserProvider; use Kanboard\User\LdapUserProvider; @@ -15,7 +15,7 @@ class LdapUserPhotoSubscriberTest extends Base { $userProvider = new DatabaseUserProvider(array()); $subscriber = new LdapUserPhotoSubscriber($this->container); - $userModel = new User($this->container); + $userModel = new UserModel($this->container); $userModel->update(array('id' => 1, 'avatar_path' => 'my avatar')); $user = $userModel->getById(1); @@ -30,7 +30,7 @@ class LdapUserPhotoSubscriberTest extends Base { $userProvider = new LdapUserProvider('dn', 'admin', 'Admin', 'admin@localhost', Role::APP_ADMIN, array(), 'my photo'); $subscriber = new LdapUserPhotoSubscriber($this->container); - $userModel = new User($this->container); + $userModel = new UserModel($this->container); $user = $userModel->getById(1); $this->container['objectStorage'] @@ -49,7 +49,7 @@ class LdapUserPhotoSubscriberTest extends Base { $userProvider = new LdapUserProvider('dn', 'admin', 'Admin', 'admin@localhost', Role::APP_ADMIN, array()); $subscriber = new LdapUserPhotoSubscriber($this->container); - $userModel = new User($this->container); + $userModel = new UserModel($this->container); $user = $userModel->getById(1); $this->container['objectStorage'] @@ -66,7 +66,7 @@ class LdapUserPhotoSubscriberTest extends Base { $userProvider = new LdapUserProvider('dn', 'admin', 'Admin', 'admin@localhost', Role::APP_ADMIN, array(), 'my photo'); $subscriber = new LdapUserPhotoSubscriber($this->container); - $userModel = new User($this->container); + $userModel = new UserModel($this->container); $userModel->update(array('id' => 1, 'avatar_path' => 'my avatar')); $user = $userModel->getById(1); |