Pantheon\Terminus\UnitTests\Collections\TagsTest::testCreate PHP Method

testCreate() public method

Tests Tags::create($tag)
public testCreate ( )
    public function testCreate()
    {
        $tag_id = 'tag_id';
        $this->collection->org_site_membership->organization->id = 'org_uuid';
        $this->request->expects($this->once())->method('request')->with($this->equalTo('organizations/org_uuid/tags'), $this->equalTo(['form_params' => [$tag_id => ['sites' => ['site_uuid']]], 'method' => 'put']));
        $this->collection->create($tag_id);
    }