@@ -9,18 +9,18 @@ public function setUp()
9
9
parent ::setUp ();
10
10
11
11
// config
12
- $ config = array (
13
- 'use_cache ' => false ,
14
- 'cache_key ' => 'Laravel.Sitemap. ' ,
15
- 'cache_duration ' => 3600 ,
16
- ) ;
12
+ $ config = [
13
+ 'use_cache ' => false ,
14
+ 'cache_key ' => 'Laravel.Sitemap. ' ,
15
+ 'cache_duration ' => 3600 ,
16
+ ] ;
17
17
18
18
$ this ->sitemap = new Roumen \Sitemap \Sitemap ($ config );
19
19
}
20
20
21
21
public function testSitemapAdd ()
22
22
{
23
- $ this ->sitemap ->add ('TestLoc ' ,'2014-02-29 00:00:00 ' , 0.95 , 'weekly ' , array ( array ( "url " => "test.png " ), array ( "url " => "<&> " )) , 'TestTitle ' );
23
+ $ this ->sitemap ->add ('TestLoc ' ,'2014-02-29 00:00:00 ' , 0.95 , 'weekly ' , [[ "url " => "test.png " ], [ "url " => "<&> " ]] , 'TestTitle ' );
24
24
25
25
$ items = $ this ->sitemap ->model ->getItems ();
26
26
@@ -30,9 +30,8 @@ public function testSitemapAdd()
30
30
$ this ->assertEquals ('2014-02-29 00:00:00 ' , $ items [0 ]['lastmod ' ]);
31
31
$ this ->assertEquals ('0.95 ' , $ items [0 ]['priority ' ]);
32
32
$ this ->assertEquals ('weekly ' , $ items [0 ]['freq ' ]);
33
- $ this ->assertEquals (array ( array ( "url " => "test.png " ), array ( "url " => "<&> " )) , $ items [0 ]['images ' ]);
33
+ $ this ->assertEquals ([[ "url " => "test.png " ], [ "url " => "<&> " ]] , $ items [0 ]['images ' ]);
34
34
$ this ->assertEquals ('TestTitle ' , $ items [0 ]['title ' ]);
35
-
36
35
}
37
36
38
37
public function testSitemapAttributes ()
@@ -64,5 +63,4 @@ public function testSitemapCache()
64
63
{
65
64
//
66
65
}
67
-
68
- }
66
+ }
0 commit comments