Beispiel #1
0
 public function test_getFieldNames_return_array_with_a_string()
 {
     $mock = $this->scaffoldMock();
     $mock->getMockController()->SetRemoteTemplate = true;
     $mock->getMockController()->TemplateExists = function () {
         $ret = new stdClass();
         $ret->TemplateExistsResult = true;
         return $ret;
     };
     $mock->getMockController()->GetFieldNames = function () {
         $ret = new \stdClass();
         $ret->GetFieldNamesResult = new \stdClass();
         $ret->GetFieldNamesResult->string = 'value';
         return $ret;
     };
     $remote = new LdxRemote($mock);
     $remote->setName('test-remote-4.dat');
     $remote->setAsActive();
     $this->array($remote->getFieldNames())->containsValues(['value']);
 }