createAuthorWithRandomizedData($client); // Register second author $toAuthor = $this->createAuthorWithRandomizedData($client); // Make first follow second author $this->makeFollow($client, $fromAuthor['id'], $toAuthor['id']); sleep(2); $totalFollowers = $this->getFollowersCount($client, $toAuthor['id']); $this->assertSame(1, $totalFollowers); } }