Pantheon\Terminus\UnitTests\Commands\Org\Team\ListCommandTest::testOrgTeamListNotEmpty PHP Method

testOrgTeamListNotEmpty() public method

Tests the org:team:list command
    public function testOrgTeamListNotEmpty()
    {
        $data = ['id' => 'user_id', 'first_name' => 'Dev', 'last_name' => 'User', 'email' => '[email protected]', 'role' => 'team_role'];
        $this->org_user_memberships->expects($this->once())->method('all')->with()->willReturn([$this->org_user_membership]);
        $this->org_user_membership->expects($this->any())->method('serialize')->willReturn($data);
        $this->logger->expects($this->never())->method('log');
        $out = $this->command->listTeam($this->organization->id);
        $this->assertInstanceOf('Consolidation\\OutputFormatters\\StructuredData\\RowsOfFields', $out);
        $this->assertEquals([$data], $out->getArrayCopy());
    }