Skip to content

Commit

Permalink
Fix tests to work with installed Horde_Kolab_Format too.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 14, 2017
1 parent a07e642 commit 2fd0882
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -75,12 +75,12 @@ public function testStore()
),
$result
);
$this->assertEquals(
$this->assertStringMatchesFormat(
'From: user
To: user
Date:
Date:
Subject: ABC1234
User-Agent: Horde::Kolab::Storage v@version@
User-Agent: Horde::Kolab::Storage v%s
MIME-Version: 1.0
X-Kolab-Type: application/x-vnd.kolab.note
Content-Type: multipart/mixed; boundary="";
Expand Down Expand Up @@ -108,7 +108,7 @@ public function testStore()
<creation-date></creation-date>
<last-modification-date></last-modification-date>
<sensitivity>public</sensitivity>
<product-id>Horde_Kolab_Format_Xml-@version@ (api version: 2)</product-id>
<product-id>Horde_Kolab_Format_Xml-%s (api version: 2)</product-id>
<summary>NEW</summary>
<x-test>other client</x-test>
<background-color>#000000</background-color>
Expand Down
Expand Up @@ -74,12 +74,12 @@ public function testStore()
),
$result
);
$this->assertEquals(
$this->assertStringMatchesFormat(
'From: user
To: user
Date:
Date:
Subject: ABC1234
User-Agent: Horde_Kolab_Storage @version@
User-Agent: Horde_Kolab_Storage v%s
MIME-Version: 1.0
X-Kolab-Type: application/x-vnd.kolab.note
Content-Type: multipart/mixed; name="Kolab Groupware Data";
Expand All @@ -105,7 +105,7 @@ public function testStore()
<creation-date></creation-date>
<last-modification-date></last-modification-date>
<sensitivity>public</sensitivity>
<product-id>Horde_Kolab_Format_Xml-@version@ (api version: 2)</product-id>
<product-id>Horde_Kolab_Format_Xml-%s (api version: 2)</product-id>
<summary>TEST</summary>
<background-color>#000000</background-color>
<foreground-color>#ffff00</foreground-color>
Expand Down

0 comments on commit 2fd0882

Please sign in to comment.