File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ public function testAddAssets()
6969 $ this ->assertContains ('/bar/foo.js ' , $ js );
7070
7171 $ html = $ this ->r ->renderHead ();
72- $ this ->assertTag (array ('tag ' => 'script ' , 'attributes ' => array ('src ' => '/foobar/foo.js ' )), $ html );
72+ //$this->assertTag(array('tag' => 'script', 'attributes' => array('src' => '/foobar/foo.js')), $html);
73+ $ this ->assertContains ('<script type="text/javascript" src="/foobar/foo.js"></script> ' , $ html );
7374 }
7475
7576 public function testGetAssets ()
@@ -88,7 +89,7 @@ public function testGetAssets()
8889 public function testRenderHead ()
8990 {
9091 $ html = $ this ->r ->renderHead ();
91- $ this ->assertTag ( array ( ' tag ' => ' script ' , ' attributes ' => array ( ' src ' => ' /burl/debugbar.js ' )) , $ html );
92+ $ this ->assertContains ( ' < script type="text/javascript" src=" /burl/debugbar.js"></script> ' , $ html );
9293 $ this ->assertTrue (strpos ($ html , "jQuery.noConflict(true); " ) > -1 );
9394
9495 $ this ->r ->setEnableJqueryNoConflict (false );
You can’t perform that action at this time.
0 commit comments