DirkGroenen\Pinterest\Tests\Endpoints\PinsTest::testCreate PHP Method

testCreate() public method

public testCreate ( )
    public function testCreate()
    {
        $response = $this->pinterest->pins->create(array("note" => "Test pin from API wrapper", "image_url" => "https://download.unsplash.com/photo-1438216983993-cdcd7dea84ce", "board" => "503066289565421201"));
        $this->assertInstanceOf("DirkGroenen\\Pinterest\\Models\\Pin", $response);
        $this->assertEquals($response->id, "503066220854919983");
    }