summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/vCardTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/vCardTest.php')
-rw-r--r--www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/vCardTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/vCardTest.php b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/vCardTest.php
index 6d3d46df..2467df95 100644
--- a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/vCardTest.php
+++ b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/vCardTest.php
@@ -23,9 +23,10 @@ class vCardTest extends \PHPUnit_Framework_TestCase {
);
}
- public function testTextOnEmptyCard() {
+ public function testEmptyCard() {
$instance = new vCard( 'http://example.org/Foo', 'Foo', [] );
+ $instance->set( 'url', 'http://example.org/Bar' );
$this->assertSame(
"BEGIN:VCARD\r\n" .
@@ -36,7 +37,7 @@ class vCardTest extends \PHPUnit_Framework_TestCase {
"SOURCE;CHARSET=UTF-8:http://example.org/Foo\r\n" .
"PRODID:-////Semantic MediaWiki\r\n" .
"REV:\r\n" .
- "URL:http://example.org/Foo\r\n" .
+ "URL:http://example.org/Bar\r\n" .
"UID:http://example.org/Foo\r\n" .
"END:VCARD\r\n",
$instance->text()