OrganizationProfilesTest.php 934 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Tests\Application\Profile;
  3. use App\Tests\Application\OtWebTestCase;
  4. class OrganizationProfilesTest extends OtWebTestCase
  5. {
  6. public function testGetAccessId(): void
  7. {
  8. $this->logger->info("\033[1;34mStarting test... get organization profile by ID\033[0m");
  9. $this->loginAs($this->user);
  10. $this->get('/api/organization_profiles/1');
  11. $this->assertResponseStatusCodeSame(403);
  12. $this->logger->info("\033[1;32mTest 'get organization profile by ID' resulted in 403 Forbidden as expected\033[0m");
  13. $this->logger->info("\033[1;34mStarting test... get organization profile by ID\033[0m");
  14. $this->loginAsStudent($this->user);
  15. $this->get('/api/organization_profiles/1');
  16. $this->assertResponseStatusCodeSame(403);
  17. $this->logger->info("\033[1;32mTest 'get organization profile by ID' resulted in 403 Forbidden as expected\033[0m");
  18. }
  19. }