Преглед изворни кода

Merge pull request #1630 from pulzarraider/acl_test_fix

Fixed AdminObjectAclDataTest, refs #1610
Thomas пре 12 година
родитељ
комит
f16ecb21b5
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Tests/Util/AdminObjectAclDataTest.php

+ 2 - 2
Tests/Util/AdminObjectAclDataTest.php

@@ -21,7 +21,7 @@ class AdminObjectAclDataTest extends \PHPUnit_Framework_TestCase
 
     protected static function createAclUsers()
     {
-        return array();
+        return new \ArrayIterator;
     }
 
     protected function createAdminObjectAclData($isOwner = true)
@@ -67,7 +67,7 @@ class AdminObjectAclDataTest extends \PHPUnit_Framework_TestCase
     public function testGetAclUsers()
     {
         $adminObjectAclData = $this->createAdminObjectAclData();
-        $this->assertInternalType('array', $adminObjectAclData->getAclUsers());
+        $this->assertInstanceOf('ArrayIterator', $adminObjectAclData->getAclUsers());
     }
 
     public function testSetAcl()