@@ -41,7 +41,7 @@ public function testConstructorEmptyArray()
41
41
public function testCreateNewCatalogue ()
42
42
{
43
43
$ writer = $ this ->getMockBuilder (TranslationWriter::class)
44
- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
44
+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
45
45
->disableOriginalConstructor ()
46
46
->getMock ();
47
47
$ writer ->expects ($ this ->once ())
@@ -56,7 +56,7 @@ public function testCreateNewCatalogue()
56
56
$ storage ->create (new Message ('key ' , 'domain ' , 'en ' , 'Message ' ));
57
57
58
58
$ writer = $ this ->getMockBuilder (TranslationWriter::class)
59
- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
59
+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
60
60
->disableOriginalConstructor ()
61
61
->getMock ();
62
62
$ writer ->expects ($ this ->once ())
@@ -74,7 +74,7 @@ public function testCreateNewCatalogue()
74
74
public function testCreateExistingCatalogue ()
75
75
{
76
76
$ writer = $ this ->getMockBuilder (TranslationWriter::class)
77
- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
77
+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
78
78
->disableOriginalConstructor ()
79
79
->getMock ();
80
80
$ writer ->expects ($ this ->once ())
@@ -117,7 +117,7 @@ public function testGet()
117
117
public function testUpdate ()
118
118
{
119
119
$ writer = $ this ->getMockBuilder (TranslationWriter::class)
120
- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
120
+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
121
121
->disableOriginalConstructor ()
122
122
->getMock ();
123
123
$ writer ->expects ($ this ->exactly (2 ))
@@ -139,7 +139,7 @@ public function testUpdate()
139
139
public function testDelete ()
140
140
{
141
141
$ writer = $ this ->getMockBuilder (TranslationWriter::class)
142
- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
142
+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
143
143
->disableOriginalConstructor ()
144
144
->getMock ();
145
145
@@ -163,7 +163,7 @@ public function testDelete()
163
163
public function testImport ()
164
164
{
165
165
$ writer = $ this ->getMockBuilder (TranslationWriter::class)
166
- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
166
+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
167
167
->disableOriginalConstructor ()
168
168
->getMock ();
169
169
0 commit comments