mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-11 15:28:40 +00:00
update
This commit is contained in:
parent
70d787bf8e
commit
fe66c1b9dc
|
|
@ -108,7 +108,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
$this->module->apiProfileCreate($request, $response);
|
$this->module->apiProfileCreate($request, $response);
|
||||||
|
|
||||||
self::assertGreaterThan(0, $response->get('')['response'][0]->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response'][0]->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -123,7 +123,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->header->account = 1;
|
$request->header->account = 1;
|
||||||
|
|
||||||
$this->module->apiProfileTempLoginCreate($request, $response);
|
$this->module->apiProfileTempLoginCreate($request, $response);
|
||||||
self::assertGreaterThan(31, \strlen($response->get('')['response']));
|
self::assertGreaterThan(31, \strlen($response->getDataArray('')['response']));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -151,7 +151,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
]);
|
]);
|
||||||
$this->module->apiSettingsAccountImageSet($request, $response);
|
$this->module->apiSettingsAccountImageSet($request, $response);
|
||||||
|
|
||||||
$image = ProfileMapper::get()->with('image')->where('id', $response->get('')['response']->id)->execute()->image;
|
$image = ProfileMapper::get()->with('image')->where('id', $response->getDataArray('')['response']->id)->execute()->image;
|
||||||
self::assertEquals('Profile Logo', $image->name);
|
self::assertEquals('Profile Logo', $image->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -185,7 +185,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('contact', '1');
|
$request->setData('contact', '1');
|
||||||
|
|
||||||
$this->module->apiContactElementCreate($request, $response);
|
$this->module->apiContactElementCreate($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -224,7 +224,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('Country', ISO3166TwoEnum::_USA);
|
$request->setData('Country', ISO3166TwoEnum::_USA);
|
||||||
|
|
||||||
$this->module->apiAddressCreate($request, $response);
|
$this->module->apiAddressCreate($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user