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

testOrgTeamListEmpty() public method

Tests the org:team:list command when the organization has no team members
    public function testOrgTeamListEmpty()
    {
        $org_name = 'org_name';
        $this->org_user_memberships->expects($this->once())->method('all')->with()->willReturn([]);
        $this->org_user_membership->expects($this->never())->method('serialize');
        $this->organization->expects($this->once())->method('get')->with($this->equalTo('profile'))->willReturn((object) ['name' => $org_name]);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('{org} has no team members.'), $this->equalTo(['org' => $org_name]));
        $out = $this->command->listTeam($this->organization->id);
        $this->assertInstanceOf('Consolidation\\OutputFormatters\\StructuredData\\RowsOfFields', $out);
        $this->assertEquals([], $out->getArrayCopy());
    }