File tree Expand file tree Collapse file tree 2 files changed +32
-5
lines changed
Expand file tree Collapse file tree 2 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 5757}</code ></pre >
5858 </div >
5959
60- <h2 class =" h5" >Setup authentication</h2 >
60+ {% if app .user %}
61+ <h2 class =" h5" >Setup authentication</h2 >
6162
62- <p >Store the authentication credentials in the global Composer <code >auth.json</code > with the command below.</p >
63+ <p >Store the authentication credentials in the global Composer <code >auth.json</code > with the command below.</p >
6364
64- <div class =" bg-body-secondary px-3 py-2 mb-3 rounded" >
65- <pre class =" m-0" ><code >composer config --global http-basic.{{ app .request .getHost () }} {{ app .user .username }} < access-token> </code ></pre >
66- </div >
65+ <div class =" bg-body-secondary px-3 py-2 mb-3 rounded" >
66+ <pre class =" m-0" ><code >composer config --global http-basic.{{ app .request .getHost () }} {{ app .user .username }} < access-token> </code ></pre >
67+ </div >
68+ {% endif %}
6769{% endblock %}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace CodedMonkey \Dirigent \Tests \FunctionalTests ;
4+
5+ use CodedMonkey \Dirigent \Tests \PublicKernel ;
6+ use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
7+
8+ class DashboardRootControllerPublicTest extends WebTestCase
9+ {
10+ protected static function getKernelClass (): string
11+ {
12+ return PublicKernel::class;
13+ }
14+
15+ public function testIndex (): void
16+ {
17+ $ client = static ::createClient ();
18+
19+ $ client ->request ('GET ' , '/ ' );
20+
21+ $ this ->assertResponseStatusCodeSame (200 );
22+
23+ $ this ->assertAnySelectorTextSame ('#total_packages .display-6 ' , '1 ' );
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments