mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-11 07:18:40 +00:00
fix tests
This commit is contained in:
parent
24f847c774
commit
1004bbca13
|
|
@ -156,8 +156,12 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
/** @var Profile $profile */
|
||||
$profile = ProfileMapper::get()->with('account')->where('account', $request->header->account)->execute();
|
||||
$old = clone $profile;
|
||||
$profile = ProfileMapper::get()
|
||||
->with('account')
|
||||
->where('account', $request->header->account)
|
||||
->execute();
|
||||
|
||||
$old = clone $profile;
|
||||
|
||||
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
|
||||
names: $request->getDataList('names'),
|
||||
|
|
|
|||
|
|
@ -137,9 +137,8 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$response = new HttpResponse();
|
||||
$request = new HttpRequest(new HttpUri(''));
|
||||
|
||||
$request->header->account = 1;
|
||||
$request->header->account = 2;
|
||||
$request->setData('names', 'Profile Logo');
|
||||
$request->setData('id', 1);
|
||||
|
||||
TestUtils::setMember($request, 'files', [
|
||||
'file1' => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user