提交 fc0cf843 编写于 作者: S sunjianhua

fix: test

上级 2bff69d4
......@@ -116,7 +116,9 @@ class EntityFieldControllerTest extends TestCase
$this->assertDatabaseHas($this->entity->table_name, ['title' => $updateData['title']]);
$response = $this->actingAs($this->user, 'admin')
->get('/admin/entity/' . $this->entity->id . '/contents/list/?action=search&title=修改标题');
->get(
'/admin/entity/' . $this->entity->id . '/contents/list/?action=search&title=' . urlencode($updateData['title'])
);
$response->assertJson(['code' => 0]);
$response->assertJsonFragment(['title' => $updateData['title']]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册