public function bookUpdate(\BookStack\Book $book) { $newName = $book->name . ' Updated'; $this->asAdmin()->visit($book->getUrl() . '/edit')->see($book->name)->type($newName, '#name')->press('Save Book')->seePageIs($book->getUrl() . '-updated')->see($newName); return \BookStack\Book::find($book->id); }