Exemplo n.º 1
0
    function testIsForFamily_False()
    {
        $photo = new Phlickr_Photo($this->api, simplexml_load_string(<<<XML
<photo id="2733" secret="123456" server="12"><visibility ispublic="1" isfriend="1" isfamily="0" /></photo>
XML
));
        $this->assertFalse($photo->isForFamily());
    }
Exemplo n.º 2
0
 function testUpload_WithClassPermissions()
 {
     $this->uploader->setPerms(false, false, false);
     // upload it
     $result = $this->uploader->Upload(TESTING_FILE_NAME_JPG, 'testing title', 'a description', 'atag btag');
     // verify the returned id
     $this->assertType('string', $result, 'Returned the wrong type.');
     $photo = new Phlickr_Photo($this->api, $result);
     $this->assertFalse($photo->isForPublic());
     $this->assertFalse($photo->isForFriends());
     $this->assertFalse($photo->isForFamily());
 }