33namespace MailerLiteApi \Tests ;
44
55use MailerLiteApi \MailerLite ;
6- use MailerLiteApi \Resources \Fields ;
76
7+ /**
8+ * Class SubscribersTest
9+ *
10+ * @package MailerLiteApi\Tests
11+ */
812class SubscribersTest extends MlTestCase
913{
1014 protected $ groupsApi ;
@@ -15,7 +19,7 @@ class SubscribersTest extends MlTestCase
1519
1620 protected $ testSubscriber ;
1721
18- protected function setUp ()
22+ protected function setUp (): void
1923 {
2024 $ ml = new MailerLite (API_KEY );
2125 $ this ->groupsApi = $ ml ->groups ();
@@ -25,7 +29,7 @@ protected function setUp()
2529 $ this ->testSubscriber = $ this ->addSubscriber ($ this ->testGroup ->id );
2630 }
2731
28- protected function tearDown ()
32+ protected function tearDown (): void
2933 {
3034 $ this ->groupsApi ->delete ($ this ->testGroup ->id );
3135 }
@@ -55,9 +59,9 @@ public function update_subscriber()
5559
5660 $ subscriber = $ this ->subscribersApi ->update ($ this ->testSubscriber ->id , $ subscriberData );
5761
58- $ this ->assertEquals ($ subscriber ->type , ' unsubscribed ' );
62+ $ this ->assertEquals (' unsubscribed ' , $ subscriber ->type );
5963
60- $ subscriber = $ this ->subscribersApi ->update ($ this ->testSubscriber ->id , ['type ' => 'active ' ]);
64+ $ this ->subscribersApi ->update ($ this ->testSubscriber ->id , ['type ' => 'active ' ]);
6165 }
6266
6367 /** @test **/
@@ -68,4 +72,4 @@ public function search_for_a_subscriber()
6872 $ this ->assertTrue (count ($ subscribers ) > 0 );
6973 }
7074
71- }
75+ }
0 commit comments