@@ -25,53 +25,53 @@ public function setUp(): void
25
25
26
26
public function testGetId ()
27
27
{
28
- $ this -> assertNull ($ this ->entity ->getId ());
28
+ self :: assertNull ($ this ->entity ->getId ());
29
29
}
30
30
31
31
public function testSetDomain ()
32
32
{
33
- $ this -> assertInstanceOf (Translation::class, $ this ->entity ->setDomain ('domain ' ));
33
+ self :: assertInstanceOf (Translation::class, $ this ->entity ->setDomain ('domain ' ));
34
34
}
35
35
36
36
public function testSetLocale ()
37
37
{
38
- $ this -> assertInstanceOf (Translation::class, $ this ->entity ->setLocale ('ru ' ));
38
+ self :: assertInstanceOf (Translation::class, $ this ->entity ->setLocale ('ru ' ));
39
39
}
40
40
41
41
public function testGetKey ()
42
42
{
43
- $ this -> assertNull ($ this ->entity ->getKey ());
43
+ self :: assertNull ($ this ->entity ->getKey ());
44
44
}
45
45
46
46
public function testGetDomain ()
47
47
{
48
- $ this -> assertNull ($ this ->entity ->getDomain ());
48
+ self :: assertNull ($ this ->entity ->getDomain ());
49
49
$ this ->entity ->setDomain ('domain ' );
50
- $ this -> assertEquals ('domain ' , $ this ->entity ->getDomain ());
50
+ self :: assertEquals ('domain ' , $ this ->entity ->getDomain ());
51
51
}
52
52
53
53
public function testGetTranslation ()
54
54
{
55
- $ this -> assertNull ($ this ->entity ->getTranslation ());
55
+ self :: assertNull ($ this ->entity ->getTranslation ());
56
56
$ this ->entity ->setTranslation ('translation ' );
57
- $ this -> assertEquals ('translation ' , $ this ->entity ->getTranslation ());
57
+ self :: assertEquals ('translation ' , $ this ->entity ->getTranslation ());
58
58
}
59
59
60
60
public function testGetLocale ()
61
61
{
62
- $ this -> assertNull ($ this ->entity ->getLocale ());
62
+ self :: assertNull ($ this ->entity ->getLocale ());
63
63
$ this ->entity ->setLocale ('en ' );
64
- $ this -> assertEquals ('en ' , $ this ->entity ->getLocale ());
64
+ self :: assertEquals ('en ' , $ this ->entity ->getLocale ());
65
65
}
66
66
67
67
public function testSetTranslation ()
68
68
{
69
- $ this -> assertInstanceOf (Translation::class, $ this ->entity ->setTranslation ('translation ' ));
69
+ self :: assertInstanceOf (Translation::class, $ this ->entity ->setTranslation ('translation ' ));
70
70
}
71
71
72
72
public function testSetKey ()
73
73
{
74
- $ this -> assertInstanceOf (Translation::class, $ this ->entity ->setKey ('key ' ));
74
+ self :: assertInstanceOf (Translation::class, $ this ->entity ->setKey ('key ' ));
75
75
}
76
76
77
77
public function testLoad ()
@@ -83,10 +83,10 @@ public function testLoad()
83
83
'domain ' => 'domain ' ,
84
84
];
85
85
86
- $ this -> assertInstanceOf (Translation::class, $ this ->entity ->load ($ params ));
87
- $ this -> assertEquals ('en ' , $ this ->entity ->getLocale ());
88
- $ this -> assertEquals ('key ' , $ this ->entity ->getKey ());
89
- $ this -> assertEquals ('translation ' , $ this ->entity ->getTranslation ());
90
- $ this -> assertEquals ('domain ' , $ this ->entity ->getDomain ());
86
+ self :: assertInstanceOf (Translation::class, $ this ->entity ->load ($ params ));
87
+ self :: assertEquals ('en ' , $ this ->entity ->getLocale ());
88
+ self :: assertEquals ('key ' , $ this ->entity ->getKey ());
89
+ self :: assertEquals ('translation ' , $ this ->entity ->getTranslation ());
90
+ self :: assertEquals ('domain ' , $ this ->entity ->getDomain ());
91
91
}
92
92
}
0 commit comments