Esempio n. 1
0
 /**
  * @covers \airmoi\FileMaker\FileMaker::getRecordById
  * @depends testCreateRecord
  */
 public function testGetRecordById($recId)
 {
     $record = $this->fm->getRecordById('sample', $recId);
     if (!$GLOBALS['OFFICIAL_API']) {
         $this->assertInstanceOf(Object\Record::class, $record);
     } else {
         $this->assertInstanceOf(\FileMaker_Record::class, $record);
     }
     $this->assertStringEndsWith('testCreateRecord', $record->getField('text_field'));
     $this->fm->newDeleteCommand('sample', $record->getRecordId())->execute();
 }