Skip to content

Commit

Permalink
Adds test case for retrieving existing workflow namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
craigpaul committed Nov 25, 2023
1 parent c6d9e20 commit d5c9223
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/CanRetrieveWorkflowNamespacesTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace CraigPaul\Blitz\Tests;

use Illuminate\Testing\Fluent\AssertableJson;

class CanRetrieveWorkflowNamespacesTest extends TestCase
{
public function testCanRetrieveExistingWorkflowNamespaces()
{
$this->withoutExceptionHandling()
->get(route('blitz.workflows'))
->assertOk()
->assertJsonCount(1)
->assertJson(fn (AssertableJson $json) => $json->where('0', 'Tests\\Blitz\\ExampleTest'));
}
}

0 comments on commit d5c9223

Please sign in to comment.