Postfix test: order should not be important
authorPhilipp Schüle <p.schuele@metaways.de>
Wed, 2 Aug 2017 11:38:52 +0000 (13:38 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 2 Aug 2017 11:38:52 +0000 (13:38 +0200)
Change-Id: I428e79dd3ba0311575edee9554357e311a1abc0b

tests/tine20/Tinebase/User/EmailUser/Smtp/PostfixTest.php

index 51ed930..a5b0eea 100644 (file)
@@ -96,8 +96,10 @@ class Tinebase_User_EmailUser_Smtp_PostfixTest extends PHPUnit_Framework_TestCas
         
         $this->assertTrue($testUser instanceof Tinebase_Model_FullUser);
         $this->assertTrue(isset($testUser->smtpUser), 'no smtpUser data found in ' . print_r($testUser->toArray(), TRUE));
         
         $this->assertTrue($testUser instanceof Tinebase_Model_FullUser);
         $this->assertTrue(isset($testUser->smtpUser), 'no smtpUser data found in ' . print_r($testUser->toArray(), TRUE));
-        $this->assertEquals(array('unittest@' . $this->_mailDomain, 'test@' . $this->_mailDomain), $testUser->smtpUser->emailForwards, 'forwards not found');
-        $this->assertEquals(array('bla@' . $this->_mailDomain, 'blubb@' . $this->_mailDomain),     $testUser->smtpUser->emailAliases, 'aliases not found');
+        $this->assertTrue(in_array('unittest@' . $this->_mailDomain, $testUser->smtpUser->emailForwards), 'forwards not found');
+        $this->assertTrue(in_array('test@' . $this->_mailDomain, $testUser->smtpUser->emailForwards), 'forwards not found');
+        $this->assertTrue(in_array('bla@' . $this->_mailDomain, $testUser->smtpUser->emailAliases), 'aliases not found');
+        $this->assertTrue(in_array('blubb@' . $this->_mailDomain, $testUser->smtpUser->emailAliases), 'aliases not found');
         $this->assertEquals(true,                                            $testUser->smtpUser->emailForwardOnly);
         $this->assertEquals($user->accountEmailAddress,                      $testUser->smtpUser->emailAddress);
         
         $this->assertEquals(true,                                            $testUser->smtpUser->emailForwardOnly);
         $this->assertEquals($user->accountEmailAddress,                      $testUser->smtpUser->emailAddress);