mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-02 06:43:10 +08:00
Applied latest StyleCI changes
This commit is contained in:
@ -74,7 +74,7 @@ class ChapterTest extends TestCase
|
||||
$resp->assertOk();
|
||||
$resp->assertSee('Copy Chapter');
|
||||
$resp->assertElementExists("input[name=\"name\"][value=\"{$chapter->name}\"]");
|
||||
$resp->assertElementExists("input[name=\"entity_selection\"]");
|
||||
$resp->assertElementExists('input[name="entity_selection"]');
|
||||
}
|
||||
|
||||
public function test_copy()
|
||||
@ -85,7 +85,7 @@ class ChapterTest extends TestCase
|
||||
$otherBook = Book::query()->where('id', '!=', $chapter->book_id)->first();
|
||||
|
||||
$resp = $this->asEditor()->post($chapter->getUrl('/copy'), [
|
||||
'name' => 'My copied chapter',
|
||||
'name' => 'My copied chapter',
|
||||
'entity_selection' => 'book:' . $otherBook->id,
|
||||
]);
|
||||
|
||||
|
@ -177,7 +177,7 @@ class RolesTest extends TestCase
|
||||
$role = Role::query()->first();
|
||||
$resp = $this->asAdmin()->get("/settings/roles/new?copy_from={$role->id}");
|
||||
$resp->assertOk();
|
||||
$resp->assertElementExists('input[name="display_name"][value="' . ($role->display_name . ' (Copy)') . '"]');
|
||||
$resp->assertElementExists('input[name="display_name"][value="' . ($role->display_name . ' (Copy)') . '"]');
|
||||
}
|
||||
|
||||
public function test_manage_user_permission()
|
||||
|
Reference in New Issue
Block a user