aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginIssoTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/PluginIssoTest.php')
-rw-r--r--tests/plugins/PluginIssoTest.php21
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/plugins/PluginIssoTest.php b/tests/plugins/PluginIssoTest.php
index ea86a05c..6b7904dd 100644
--- a/tests/plugins/PluginIssoTest.php
+++ b/tests/plugins/PluginIssoTest.php
@@ -52,8 +52,9 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase
52 'title' => $str, 52 'title' => $str,
53 'links' => array( 53 'links' => array(
54 array( 54 array(
55 'id' => 12,
55 'url' => $str, 56 'url' => $str,
56 'created' => DateTime::createFromFormat('Ymd_His', $date), 57 'created' => DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $date),
57 ) 58 )
58 ) 59 )
59 ); 60 );
@@ -66,7 +67,14 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase
66 67
67 // plugin data 68 // plugin data
68 $this->assertEquals(1, count($data['plugin_end_zone'])); 69 $this->assertEquals(1, count($data['plugin_end_zone']));
69 $this->assertNotFalse(strpos($data['plugin_end_zone'][0], $date)); 70 $this->assertNotFalse(strpos(
71 $data['plugin_end_zone'][0],
72 'data-isso-id="'. $data['links'][0]['id'] .'"'
73 ));
74 $this->assertNotFalse(strpos(
75 $data['plugin_end_zone'][0],
76 'data-title="'. $data['links'][0]['id'] .'"'
77 ));
70 $this->assertNotFalse(strpos($data['plugin_end_zone'][0], 'embed.min.js')); 78 $this->assertNotFalse(strpos($data['plugin_end_zone'][0], 'embed.min.js'));
71 } 79 }
72 80
@@ -85,12 +93,14 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase
85 'title' => $str, 93 'title' => $str,
86 'links' => array( 94 'links' => array(
87 array( 95 array(
96 'id' => 12,
88 'url' => $str, 97 'url' => $str,
89 'created' => DateTime::createFromFormat('Ymd_His', $date1), 98 'created' => DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $date1),
90 ), 99 ),
91 array( 100 array(
101 'id' => 13,
92 'url' => $str . '2', 102 'url' => $str . '2',
93 'created' => DateTime::createFromFormat('Ymd_His', $date2), 103 'created' => DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $date2),
94 ), 104 ),
95 ) 105 )
96 ); 106 );
@@ -114,8 +124,9 @@ class PluginIssoTest extends PHPUnit_Framework_TestCase
114 'title' => $str, 124 'title' => $str,
115 'links' => array( 125 'links' => array(
116 array( 126 array(
127 'id' => 12,
117 'url' => $str, 128 'url' => $str,
118 'created' => DateTime::createFromFormat('Ymd_His', $date), 129 'created' => DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $date),
119 ) 130 )
120 ), 131 ),
121 'search_term' => $str 132 'search_term' => $str