SevenShores\Hubspot\Tests\Integration\Resources\OwnersTest::findByEmail PHP Method

findByEmail() public method

public findByEmail ( )
    public function findByEmail()
    {
        $email = uniqid('test_email') . '@hubspot.com';
        $this->createOwner($email);
        $response = $this->owners->all(['email' => $email]);
        $this->assertSame(200, $response->getStatusCode());
        $this->assertSame($email, $response->toArray()[0]['email']);
    }