@@ -41,7 +41,7 @@ public function testConstructorEmptyArray()
4141 public function testCreateNewCatalogue ()
4242 {
4343 $ writer = $ this ->getMockBuilder (TranslationWriter::class)
44- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
44+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
4545 ->disableOriginalConstructor ()
4646 ->getMock ();
4747 $ writer ->expects ($ this ->once ())
@@ -56,7 +56,7 @@ public function testCreateNewCatalogue()
5656 $ storage ->create (new Message ('key ' , 'domain ' , 'en ' , 'Message ' ));
5757
5858 $ writer = $ this ->getMockBuilder (TranslationWriter::class)
59- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
59+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
6060 ->disableOriginalConstructor ()
6161 ->getMock ();
6262 $ writer ->expects ($ this ->once ())
@@ -74,7 +74,7 @@ public function testCreateNewCatalogue()
7474 public function testCreateExistingCatalogue ()
7575 {
7676 $ writer = $ this ->getMockBuilder (TranslationWriter::class)
77- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
77+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
7878 ->disableOriginalConstructor ()
7979 ->getMock ();
8080 $ writer ->expects ($ this ->once ())
@@ -117,7 +117,7 @@ public function testGet()
117117 public function testUpdate ()
118118 {
119119 $ writer = $ this ->getMockBuilder (TranslationWriter::class)
120- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
120+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
121121 ->disableOriginalConstructor ()
122122 ->getMock ();
123123 $ writer ->expects ($ this ->exactly (2 ))
@@ -139,7 +139,7 @@ public function testUpdate()
139139 public function testDelete ()
140140 {
141141 $ writer = $ this ->getMockBuilder (TranslationWriter::class)
142- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
142+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
143143 ->disableOriginalConstructor ()
144144 ->getMock ();
145145
@@ -163,7 +163,7 @@ public function testDelete()
163163 public function testImport ()
164164 {
165165 $ writer = $ this ->getMockBuilder (TranslationWriter::class)
166- ->setMethods ([$ this ->getMethodNameToWriteTranslations ()])
166+ ->onlyMethods ([$ this ->getMethodNameToWriteTranslations ()])
167167 ->disableOriginalConstructor ()
168168 ->getMock ();
169169
0 commit comments