Scalr\Tests\Functional\Api\V2\ApiTest::assertTeams PHP Метод

assertTeams() публичный Метод

Reports an error if specified team is not present in the list of teams of the Farm obtained by filtration
public assertTeams ( object $team, object[] $teams, string $message )
$team object Filter value
$teams object[] Filtering property of the object obtained by filtration
$message string optional Message in case of error
    public function assertTeams($team, $teams, $message)
    {
        $teamIds = [];
        foreach ($teams as $teamFk) {
            $teamIds[] = $teamFk->id;
        }
        $this->assertContains($team->id, $teamIds, $message);
    }