3
3
namespace Municipio \PostObject \Decorators ;
4
4
5
5
use Municipio \PostObject \Date \TimestampResolverInterface ;
6
- use Municipio \PostObject \Icon \IconInterface ;
7
- use Municipio \PostObject \Icon \Resolvers \IconResolverInterface ;
8
- use Municipio \PostObject \Icon \Resolvers \NullIconResolver ;
9
6
use Municipio \PostObject \PostObject ;
10
7
use PHPUnit \Framework \TestCase ;
11
8
use WpService \Implementations \FakeWpService ;
12
9
13
- class PostObjectDateTimestampTest extends TestCase
10
+ class PostObjectArchiveDateTimestampTest extends TestCase
14
11
{
15
12
/**
16
13
* @testdox class can be instantiated
17
14
*/
18
15
public function testClassCanBeInstantiated ()
19
16
{
20
17
$ resolver = $ this ->createMock (TimestampResolverInterface::class);
21
- $ decorator = new PostObjectDateTimestamp (new PostObject (new FakeWpService ()), new FakeWpService (), $ resolver );
22
- $ this ->assertInstanceOf (PostObjectDateTimestamp ::class, $ decorator );
18
+ $ decorator = new PostObjectArchiveDateTimestamp (new PostObject (new FakeWpService ()), new FakeWpService (), $ resolver );
19
+ $ this ->assertInstanceOf (PostObjectArchiveDateTimestamp ::class, $ decorator );
23
20
}
24
21
25
22
/**
@@ -30,8 +27,8 @@ public function testReturnUnixTimestamp()
30
27
$ resolver = $ this ->createMock (TimestampResolverInterface::class);
31
28
$ resolver ->method ('resolve ' )->willReturn (123 );
32
29
33
- $ decorator = new PostObjectDateTimestamp (new PostObject (new FakeWpService ()), new FakeWpService (), $ resolver );
30
+ $ decorator = new PostObjectArchiveDateTimestamp (new PostObject (new FakeWpService ()), new FakeWpService (), $ resolver );
34
31
35
- $ this ->assertEquals (123 , $ decorator ->getDateTimestamp ());
32
+ $ this ->assertEquals (123 , $ decorator ->getArchiveDateTimestamp ());
36
33
}
37
34
}
0 commit comments