Skip to content

A free open source IT asset/license management system

Add context to incomplete tests

Marcus Moorea333d7b72fba
diff --git a/tests/Feature/Api/Departments/DepartmentsIndexTest.php b/tests/Feature/Api/Departments/DepartmentsIndexTest.php
index d791c79e93..7e813ad9cb 100644
--- a/tests/Feature/Api/Departments/DepartmentsIndexTest.php
+++ b/tests/Feature/Api/Departments/DepartmentsIndexTest.php
@@ -17,7 +17,9 @@ class DepartmentsIndexTest extends TestCase
public function testDepartmentsIndexAdheresToCompanyScoping()
{
- $this->markTestIncomplete();
+ $this->markTestIncomplete(
+ 'Waiting for removal of Company::scopeCompanyables in DepartmentsController@index'
+ );
[$companyA, $companyB] = Company::factory()->count(2)->create();
diff --git a/tests/Feature/Api/Users/UsersIndexTest.php b/tests/Feature/Api/Users/UsersIndexTest.php
index 16893cd174..b48da4483d 100644
--- a/tests/Feature/Api/Users/UsersIndexTest.php
+++ b/tests/Feature/Api/Users/UsersIndexTest.php
@@ -16,7 +16,9 @@ class UsersIndexTest extends TestCase
public function testUsersIndexAdheresToCompanyScoping()
{
- $this->markTestIncomplete();
+ $this->markTestIncomplete(
+ 'Waiting for removal of Company::scopeCompanyables in UsersController@index'
+ );
[$companyA, $companyB] = Company::factory()->count(2)->create();
diff --git a/tests/Feature/DashboardTest.php b/tests/Feature/DashboardTest.php
index c5c41d268e..1772eac316 100644
--- a/tests/Feature/DashboardTest.php
+++ b/tests/Feature/DashboardTest.php
@@ -20,7 +20,9 @@ class DashboardTest extends TestCase
public function testUserCountIsScopedByCompany()
{
- $this->markTestIncomplete();
+ $this->markTestIncomplete(
+ 'Waiting for removal of Company::scopeCompanyables in DashboardController@index'
+ );
$this->settings->enableMultipleFullCompanySupport();