Skip to content

DOCSP-49784: View file typo (#3376) #3378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/quick-start/view-data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ View MongoDB Data
.. code-block:: none
:copyable: false

INFO View [resources/views/browse_movie.blade.php] created successfully.
INFO View [resources/views/browse_movies.blade.php] created successfully.

Open the ``browse_movie.blade.php`` view file in the ``resources/views``
Open the ``browse_movies.blade.php`` view file in the ``resources/views``
directory. Replace the contents with the following code and save the
changes:

Expand Down Expand Up @@ -141,7 +141,7 @@ View MongoDB Data

.. step:: Optionally, view your results as JSON documents

Rather than generating a view and editing the ``browse_movie.blade.php`` file, you can
Rather than generating a view and editing the ``browse_movies.blade.php`` file, you can
use the ``toJson()`` method to display your results in JSON format.

Replace the ``show()`` function with the following code to retrieve results and
Expand Down
23 changes: 11 additions & 12 deletions tests/QueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use MongoDB\Laravel\Queue\MongoQueue;

use function app;
use function json_encode;
use function json_decode;

class QueueTest extends TestCase
{
Expand All @@ -42,17 +42,16 @@ public function testQueueJobLifeCycle(): void
$job = Queue::pop('test');
$this->assertInstanceOf(MongoJob::class, $job);
$this->assertEquals(1, $job->isReserved());
$this->assertEquals(json_encode([
'uuid' => $uuid,
'displayName' => 'test',
'job' => 'test',
'maxTries' => null,
'maxExceptions' => null,
'failOnTimeout' => false,
'backoff' => null,
'timeout' => null,
'data' => ['action' => 'QueueJobLifeCycle'],
]), $job->getRawBody());
$payload = json_decode($job->getRawBody(), true);
$this->assertEquals($uuid, $payload['uuid']);
$this->assertEquals('test', $payload['displayName']);
$this->assertEquals('test', $payload['job']);
$this->assertNull($payload['maxTries']);
$this->assertNull($payload['maxExceptions']);
$this->assertFalse($payload['failOnTimeout']);
$this->assertNull($payload['backoff']);
$this->assertNull($payload['timeout']);
$this->assertEquals(['action' => 'QueueJobLifeCycle'], $payload['data']);

// Remove reserved job
$job->delete();
Expand Down
Loading