diff --git a/resources/views/components/fields/file.blade.php b/resources/views/components/fields/file.blade.php index ea01ce458..8c390ffb9 100644 --- a/resources/views/components/fields/file.blade.php +++ b/resources/views/components/fields/file.blade.php @@ -89,8 +89,6 @@ class="cursor-pointer text-primary-400 hover:text-red-500"/> @php unset($field['field']); - - // ray($field, $selected); @endphp selectedValues($field['resource'], $this->filters['custom'][$filterGroup]['filters'][$filterIndex]['value'], $field); - ray($selectedValues); } @endphp diff --git a/resources/views/components/fields/radio.blade.php b/resources/views/components/fields/radio.blade.php index ecdeca9ec..d396b1e8b 100644 --- a/resources/views/components/fields/radio.blade.php +++ b/resources/views/components/fields/radio.blade.php @@ -1,5 +1,4 @@ @php -// ray($field); @endphp diff --git a/resources/views/components/table/filters.blade.php b/resources/views/components/table/filters.blade.php index 96794eb01..7fa6cbda4 100644 --- a/resources/views/components/table/filters.blade.php +++ b/resources/views/components/table/filters.blade.php @@ -1,7 +1,6 @@
@php - // ray($this->filters) @endphp @once @push('scripts') diff --git a/resources/views/livewire/table.blade.php b/resources/views/livewire/table.blade.php index a975ad3af..f01018337 100644 --- a/resources/views/livewire/table.blade.php +++ b/resources/views/livewire/table.blade.php @@ -183,10 +183,7 @@ }"> @include($this->settings['views']['header']) - {{-- @dump(json_encode($this->filters)) --}} - @php - // ray($this->filters); @endphp
diff --git a/src/Aura.php b/src/Aura.php index 9e05c4dbe..0c1f88976 100644 --- a/src/Aura.php +++ b/src/Aura.php @@ -217,8 +217,6 @@ public function getOption($name) $settings = []; } - // ray($settings); - return $settings; }); @@ -265,11 +263,8 @@ public function getWidgets(): array public function injectView(string $name): Htmlable { if (isset($this->injectViews[$name])) { - // ray($name, $this->injectViews[$name]); } - // ray($name); - $hooks = array_map( fn (callable $hook): string => (string) app()->call($hook), $this->injectViews[$name] ?? [], @@ -356,8 +351,6 @@ public function registerFields(array $fields): void public function registerInjectView(string $name, Closure $callback): void { $this->injectViews[$name][] = $callback; - - // ray($this->injectViews); } public function registerResources(array $resources): void diff --git a/src/AuraServiceProvider.php b/src/AuraServiceProvider.php index 5f939b772..96e2f1072 100644 --- a/src/AuraServiceProvider.php +++ b/src/AuraServiceProvider.php @@ -299,8 +299,6 @@ public function packageBooted() // 'Aura\Base\Resources\User' => 'Aura\Base\Resources\User', // ]); - // ray('relation'); - $this ->bootGate() ->bootLivewireComponents(); diff --git a/src/ConditionalLogic.php b/src/ConditionalLogic.php index 629f164f7..1507cc19e 100644 --- a/src/ConditionalLogic.php +++ b/src/ConditionalLogic.php @@ -101,7 +101,6 @@ public static function shouldDisplayField($model, $field, $post = null) $cacheKey = md5(get_class($model).json_encode($field).json_encode($post).Auth::id()); if ($field['slug'] === 'prompt') { - // ray($cacheKey, $post)->blue(); } return self::$shouldDisplayFieldCache[$cacheKey] diff --git a/src/Fields/AdvancedSelect.php b/src/Fields/AdvancedSelect.php index 7326c8a9f..d6dd49a83 100644 --- a/src/Fields/AdvancedSelect.php +++ b/src/Fields/AdvancedSelect.php @@ -99,7 +99,6 @@ public function get($class, $value, $field = null) return [$value]; } if ($value instanceof \Illuminate\Database\Eloquent\Model) { - // ray($value)->green(); return [$value->id]; } if ($value instanceof \Illuminate\Support\Collection) { diff --git a/src/Fields/Field.php b/src/Fields/Field.php index 93ac7f3b5..7a4423f3e 100644 --- a/src/Fields/Field.php +++ b/src/Fields/Field.php @@ -343,7 +343,6 @@ public function value($value) public function view() { - // ray($this, $this->view); if ($this->view) { return $this->view; } diff --git a/src/Fields/Password.php b/src/Fields/Password.php index 54e422938..ffeb6df18 100644 --- a/src/Fields/Password.php +++ b/src/Fields/Password.php @@ -23,12 +23,10 @@ public function hydrate() {} public function saving($post, $field, $value) { - // ray('...saving field', $post)->red(); $key = $field['slug']; // If value is empty (null or empty string), prevent password update entirely if (empty($value)) { - // ray('...empty value')->red(); // For User model, remove password from all possible locations if ($post instanceof \App\Models\User || $post instanceof \Aura\Base\Resources\User) { // Remove password from attributes if it exists @@ -46,7 +44,6 @@ public function saving($post, $field, $value) // Force the model to forget the password attribute // $post->syncOriginal(); - // ray('Password removed from attributes', $post->attributes)->red(); return $post; } } diff --git a/src/Fields/Roles.php b/src/Fields/Roles.php index 44aa4bf25..eac089f58 100644 --- a/src/Fields/Roles.php +++ b/src/Fields/Roles.php @@ -20,8 +20,6 @@ public function isRelation($field = null) // public function get($class, $value, $field = null) // { - // ray('get roles........', $class, $value, $field)->blue(); - // return $value; // } diff --git a/src/Listeners/SyncDatabase.php b/src/Listeners/SyncDatabase.php index d815f1188..219c7d1c9 100644 --- a/src/Listeners/SyncDatabase.php +++ b/src/Listeners/SyncDatabase.php @@ -74,8 +74,6 @@ public function handle(SaveFields $event) // Option 2: Keep all migration files and try to sync db -> cons: multiple migration files, more complex - // ray('sync', $fieldsToAdd, $fieldsToUpdate, $fieldsToDelete, $model, $model->getTable()); - return; // Change Migration File diff --git a/src/Livewire/EditResourceField.php b/src/Livewire/EditResourceField.php index c22542786..0fad55b78 100644 --- a/src/Livewire/EditResourceField.php +++ b/src/Livewire/EditResourceField.php @@ -49,8 +49,6 @@ public function activate($params) 'conditional_logic' => '', ]; - ray('newFieldIndex', $params['id'], $params['children'])->blue(); - $this->newFieldIndex = $params['id'] + $params['children']; $this->model = Aura::findResourceBySlug($params['model']); @@ -181,8 +179,6 @@ public function save() $this->validate(); if ($this->mode == 'create') { - // ray('saveNewField', $this->form['fields'], $this->newFieldIndex, $this->newFieldSlug)->blue(); - ray('saveNewField', $this->form['fields'], $this->newFieldIndex)->blue(); $this->dispatch('saveNewField', $this->form['fields'], $this->newFieldIndex); } else { // emit event to parent with slug and value @@ -198,7 +194,6 @@ public function save() public function updated($property) { // $property: The name of the current property that was updated - // ray('updated', $property)->orange(); if ($property === 'form.fields.type') { // $this->username = strtolower($this->username); diff --git a/src/Livewire/MediaManager.php b/src/Livewire/MediaManager.php index d6676dafc..0e3424001 100644 --- a/src/Livewire/MediaManager.php +++ b/src/Livewire/MediaManager.php @@ -68,7 +68,6 @@ public function select() public function selectAttachment($ids) { if (! $this->initialSelectionDone) { - ray('selectAttachment', $ids); $this->selected = $ids; $this->initialSelectionDone = true; } @@ -94,7 +93,6 @@ public function updated($name, $value) public function updateField($field) { if ($field['slug'] == $this->fieldSlug) { - ray('updated', $this->selected); $this->selected = $field['value']; $this->dispatch('selectedRows', $this->selected); } diff --git a/src/Livewire/MediaUploader.php b/src/Livewire/MediaUploader.php index 3d5371c49..b5aa52460 100644 --- a/src/Livewire/MediaUploader.php +++ b/src/Livewire/MediaUploader.php @@ -35,7 +35,6 @@ class MediaUploader extends Component public function mount() { - // ray('mount media uploader', $this->model, $this->field, $this->selected); $this->model = app($this->namespace); } diff --git a/src/Livewire/Resource/Edit.php b/src/Livewire/Resource/Edit.php index 3d9a12dc1..6d4a65bd2 100644 --- a/src/Livewire/Resource/Edit.php +++ b/src/Livewire/Resource/Edit.php @@ -51,7 +51,6 @@ public function initializeModelFields() { foreach ($this->model->inputFields() as $field) { - // ray($field)->blue(); // If the method exists in the field type, call it directly. if (method_exists($field['field'], 'hydrate')) { $this->form['fields'][$field['slug']] = $field['field']->hydrate(); @@ -87,8 +86,6 @@ public function mount($id) // foreach fields, call the hydration method on the field - // ray('mount', $this->form, $this->model); - // Set on model instead of here // if $this->form['terms']['tag'] is not set, set it to null } @@ -117,14 +114,8 @@ public function rules() public function save() { - // ray('saving', $this->form); $this->validate(); - // - // ray('saving', $this->form['fields']); - - // unset($this->form['fields']['group']); - // unset this post fields group if ($this->model->usesCustomTable()) { $this->model->update($this->form['fields']); diff --git a/src/Livewire/ResourceEditor.php b/src/Livewire/ResourceEditor.php index 86d5b405b..73c36ad59 100644 --- a/src/Livewire/ResourceEditor.php +++ b/src/Livewire/ResourceEditor.php @@ -313,8 +313,6 @@ public function getActionsProperty() public function getMappedFieldsProperty() { - // ray('getMappedFieldsProperty', $this->newFields)->blue(); - if ($this->newFields) { $this->updateGlobalTabs(); diff --git a/src/Livewire/Table/Table.php b/src/Livewire/Table/Table.php index f21d2db4e..22356da84 100644 --- a/src/Livewire/Table/Table.php +++ b/src/Livewire/Table/Table.php @@ -221,7 +221,6 @@ public function headers() })->toArray(); } - // ray('headers', $sort); return $headers; } @@ -234,8 +233,6 @@ public function loadTable() #[Computed] public function model() { - // ray('hier', $this->model); - return $this->model; } @@ -416,7 +413,6 @@ public function updatedColumns($columns) { // Save the columns for the current user. if ($this->columns) { - // ray('Save the columns for the current user', $this->columns); auth()->user()->updateOption('columns.'.$this->model()->getType(), $this->columns); } } @@ -428,9 +424,6 @@ public function updatedColumns($columns) */ public function updatedSelected() { - // ray('table updatedSelected', $this->selected); - // return; - $this->selectAll = false; $this->selectPage = false; diff --git a/src/Livewire/Table/Traits/Filters.php b/src/Livewire/Table/Traits/Filters.php index 8a82284cf..47200344e 100644 --- a/src/Livewire/Table/Traits/Filters.php +++ b/src/Livewire/Table/Traits/Filters.php @@ -244,7 +244,6 @@ public function updatedFiltersCustom($value, $key) */ public function updatedSelectedFilter($filter) { - ray('updatedSelectedFilter', $filter); $this->clearFiltersCache(); // Reset filters first diff --git a/src/Pipeline/AddIdsToFields.php b/src/Pipeline/AddIdsToFields.php index e1f0fe224..3dd611731 100644 --- a/src/Pipeline/AddIdsToFields.php +++ b/src/Pipeline/AddIdsToFields.php @@ -8,10 +8,6 @@ class AddIdsToFields implements Pipe { public function handle($fields, Closure $next) { - if (request()->url() != 'http://aura-demo.test') { - // ray('before:', $fields->toJson())->green()->once(); - } - $parentStack = []; $globalTabs = null; $lastGlobalTab = null; @@ -165,8 +161,6 @@ public function handle($fields, Closure $next) }); if (request()->url() != 'http://aura-demo.test') { - // ray('after:', $processedFields->toJson())->blue()->once(); - // ray('after:', $processedFields->toArray())->blue()->once(); } return $next($processedFields); diff --git a/src/Resource.php b/src/Resource.php index 33d01d492..41e9a3b89 100644 --- a/src/Resource.php +++ b/src/Resource.php @@ -62,9 +62,6 @@ public function __construct(array $attributes = []) public function __call($method, $parameters) { - if ($method == 'actors') { - ray('call', $method)->red(); - } if ($this->getFieldSlugs()->contains($method)) { $fieldClass = $this->fieldClassBySlug($method); @@ -127,7 +124,6 @@ public function __get($key) // } // if ($this->getFieldSlugs()->contains($key)) { - // ray('contains', $key); // $fieldClass = $this->fieldClassBySlug($key); // if ($fieldClass->isRelation()) { // $field = $this->fieldBySlug($key); diff --git a/src/Resources/Team.php b/src/Resources/Team.php index b00794dd5..b05e7c64c 100644 --- a/src/Resources/Team.php +++ b/src/Resources/Team.php @@ -255,8 +255,6 @@ protected static function booted() // $user->switchTeam($team); $user->current_team_id = $team->id; - // ray('current_team_id', $user->current_team_id)->red(); - // ray($user); $user->save(); } diff --git a/src/Resources/User.php b/src/Resources/User.php index fe3a5654c..7b773f0fd 100644 --- a/src/Resources/User.php +++ b/src/Resources/User.php @@ -111,8 +111,6 @@ public function belongsToTeam($team) public function cachedRoles(): mixed { - // ray('roles', $this->roles, DB::table('user_meta')->get(), DB::table('post_relations')->get())->blue(); - return $this->roles; return Cache::remember($this->getCacheKeyForRoles(), now()->addMinutes(60), function () { @@ -495,8 +493,6 @@ public function hasAnyRole(array $roles): bool { $cachedRoles = $this->cachedRoles()->pluck('slug'); - // ray($cachedRoles, $roles)->red(); - if (! $cachedRoles) { return false; } diff --git a/src/Traits/AuraModelConfig.php b/src/Traits/AuraModelConfig.php index 250892e42..a6f0af9cc 100644 --- a/src/Traits/AuraModelConfig.php +++ b/src/Traits/AuraModelConfig.php @@ -513,8 +513,6 @@ public function scopeWhereMeta($query, ...$args) */ public function scopeWhereMetaContains($query, $key, $value) { - // ray($query, $key, $value)->red(); - return $query->whereHas('meta', function ($query) use ($key, $value) { $value = is_numeric($value) ? (int) $value : $value; $query->where('key', $key) diff --git a/src/Traits/SaveFieldAttributes.php b/src/Traits/SaveFieldAttributes.php index 31a49e415..37ba5aef4 100644 --- a/src/Traits/SaveFieldAttributes.php +++ b/src/Traits/SaveFieldAttributes.php @@ -16,22 +16,17 @@ protected static function bootSaveFieldAttributes() { static::saving(function ($post) { - // ray('SaveFieldAttributes', $post->attributes, $post)->blue(); - if (! optional($post->attributes)['fields']) { $post->attributes['fields'] = []; } collect($post->inputFieldsSlugs())->each(function ($slug) use ($post) { - // ray($slug, array_key_exists( $slug, $post->attributes))->blue(); - if (array_key_exists($slug, $post->attributes)) { $class = $post->fieldClassBySlug($slug); if ($slug == 'password') { - // ray('Password Field', $class)->red(); } // Do not continue if the Field is not found @@ -47,8 +42,6 @@ protected static function bootSaveFieldAttributes() // unset($post->attributes[$slug]); // } - // ray('password', $post->attributes[$slug])->purple(); - // Check if the password field is dirty (i.e., has been modified) // if (! $post->isDirty($slug)) { // // Remove it from attributes so it won't be saved @@ -89,7 +82,6 @@ protected static function bootSaveFieldAttributes() return; } - // ray($post->usesCustomTable(), $post->usesCustomMeta()); // Dont unset Field if it is uses customTable if ($post->usesCustomTable() && ! $post->usesMeta()) { return; @@ -102,8 +94,6 @@ protected static function bootSaveFieldAttributes() unset($post->attributes[$slug]); }); - // ray('saving', $post)->green(); - }); } diff --git a/src/Traits/SaveMetaFields.php b/src/Traits/SaveMetaFields.php index 73ceab7f8..8df3258af 100644 --- a/src/Traits/SaveMetaFields.php +++ b/src/Traits/SaveMetaFields.php @@ -12,10 +12,7 @@ protected static function bootSaveMetaFields() static::saving(function ($post) { - // ray('SaveMetaFields', $post->attributes)->red(); - if ($post instanceof \Aura\Base\Resources\User) { - // ray('saving user', $post->attributes)->red(); } if (isset($post->attributes['fields'])) { @@ -66,13 +63,10 @@ protected static function bootSaveMetaFields() $post = $modifiedPost; } - // ray('After saving method', $post->attributes, $modifiedPost->attributes)->purple(); } // Check if further processing should be skipped if (method_exists($class, 'shouldSkip') && $class->shouldSkip($post, $field)) { - // ray('skipping')->red(); - // ray($post->attributes)->green(); continue; } @@ -103,8 +97,6 @@ protected static function bootSaveMetaFields() unset($post->attributes['fields']); $post->clearFieldsAttributeCache(); - - // ray('SaveMetaFields end', $post->attributes, $post->metaFields)->red(); } }); @@ -114,8 +106,6 @@ protected static function bootSaveMetaFields() foreach ($post->metaFields as $key => $value) { - // ray($key, $value)->red(); - // if there is a function set{Slug}Field on the model, use it $method = 'set'.Str::studly($key).'Field'; diff --git a/tests/Feature/ApplyWrappersTest.php b/tests/Feature/ApplyWrappersTest.php index a6232a6ef..528565412 100644 --- a/tests/Feature/ApplyWrappersTest.php +++ b/tests/Feature/ApplyWrappersTest.php @@ -79,12 +79,8 @@ public static function getFields() test('fields get grouped when field group is true', function () { $model = new ApplyWrappersModel; - ray()->clearScreen(); - $fields = $model->getGroupedFields(); - ray($fields)->red()->once(); - expect($fields)->toHaveCount(1); // Because of the wrapper expect($fields[0])->toHaveKeys([ @@ -182,12 +178,8 @@ public static function getFields() $model = new ApplyWrappersModel2; - ray()->clearScreen(); - $fields = $model->getGroupedFields(); - ray($fields)->red()->once(); - expect($fields)->toHaveCount(1); // Because of the wrapper expect($fields[0]['fields'])->toHaveCount(1); // Because of global diff --git a/tests/Feature/Aura/MakeUserCommandTest.php b/tests/Feature/Aura/MakeUserCommandTest.php index 87e6781f0..8e867997b 100644 --- a/tests/Feature/Aura/MakeUserCommandTest.php +++ b/tests/Feature/Aura/MakeUserCommandTest.php @@ -56,8 +56,6 @@ $this->user->refresh(); - // ray($this->user->roles, $role->toArray()); - expect($this->user->roles->count())->toBe(1); expect($this->user->roles->first()->super_admin)->toBe(true); expect($this->user->current_team_id)->toBe(Team::first()->id); diff --git a/tests/Feature/Fields/AdvancedSelectFieldViewsTest.php b/tests/Feature/Fields/AdvancedSelectFieldViewsTest.php index a8b9cbab6..5ab0b2bcb 100644 --- a/tests/Feature/Fields/AdvancedSelectFieldViewsTest.php +++ b/tests/Feature/Fields/AdvancedSelectFieldViewsTest.php @@ -190,8 +190,6 @@ public static function getFields() ]; $model->save(); - ray('here', $model); - Aura::fake(); Aura::setModel(new HasManyFieldViewsModelCustomIndex); diff --git a/tests/Feature/Fields/ComplexFieldsTest.php b/tests/Feature/Fields/ComplexFieldsTest.php index d1fd0ca60..6014dd95d 100644 --- a/tests/Feature/Fields/ComplexFieldsTest.php +++ b/tests/Feature/Fields/ComplexFieldsTest.php @@ -186,10 +186,6 @@ public static function getFields() $fields = $model->getGroupedFields(); - ray($fields); - - // ray(json_encode($fields)); - $this->assertCount(1, $fields); $this->assertEquals($fields[0]['name'], 'Panel'); $this->assertCount(1, $fields[0]['fields']); diff --git a/tests/Feature/Fields/HasManyCustomTableSettingsTest.php b/tests/Feature/Fields/HasManyCustomTableSettingsTest.php index d45b48c7f..462be7140 100644 --- a/tests/Feature/Fields/HasManyCustomTableSettingsTest.php +++ b/tests/Feature/Fields/HasManyCustomTableSettingsTest.php @@ -65,10 +65,6 @@ public static function getFields() 'posts' => $ids, ]); - ray(DB::table('post_relations')->get()); - - ray($instance->posters); - expect($instance->posts()->count())->toBe(10); // Get the field configuration from the model diff --git a/tests/Feature/Fields/NewHasManyFieldTest.php b/tests/Feature/Fields/NewHasManyFieldTest.php index 0560d0c2d..a9707936a 100644 --- a/tests/Feature/Fields/NewHasManyFieldTest.php +++ b/tests/Feature/Fields/NewHasManyFieldTest.php @@ -147,7 +147,6 @@ public static function getFields() $component = Livewire::test(View::class, ['slug' => 'NewGenreModel', 'id' => $genre1->id]); - ray($component->html()); $component ->assertSee('View Genre') ->assertSee('movies') diff --git a/tests/Feature/Fields/PasswordFieldTest.php b/tests/Feature/Fields/PasswordFieldTest.php index c5bfde9c0..385fb1c2f 100644 --- a/tests/Feature/Fields/PasswordFieldTest.php +++ b/tests/Feature/Fields/PasswordFieldTest.php @@ -75,8 +75,6 @@ public static function getFields() // get the datemodel from db $model = PasswordFieldModel::orderBy('id', 'desc')->first(); - // ray($model->password, $model->fields); - // $this->assertEquals($model->fields['password'], null); $this->assertTrue(Hash::check('123456789', $model->fields['password'])); diff --git a/tests/Feature/MultipleTabsBelowEachOtherTest.php b/tests/Feature/MultipleTabsBelowEachOtherTest.php index 4c330a9f3..d0ca5fb1b 100644 --- a/tests/Feature/MultipleTabsBelowEachOtherTest.php +++ b/tests/Feature/MultipleTabsBelowEachOtherTest.php @@ -87,12 +87,8 @@ public static function getFields() test('multiple tabs in panels in tabs are possible', function () { $model = new MultipleTabsBelowEachOtherModel; - ray()->clearScreen(); - $fields = $model->getGroupedFields(); - ray($fields)->red()->once(); - // Check root level structure expect($fields)->toHaveCount(1); expect($fields[0]['name'])->toBe('Aura\Base\Fields\Tabs'); diff --git a/tests/Feature/MultipleTabsInPanelInTabsTest.php b/tests/Feature/MultipleTabsInPanelInTabsTest.php index 6892929e1..716866c37 100644 --- a/tests/Feature/MultipleTabsInPanelInTabsTest.php +++ b/tests/Feature/MultipleTabsInPanelInTabsTest.php @@ -101,12 +101,7 @@ public static function getFields() test('panel 2 is nested in tab 2 of panel 1', function () { $model = new MultipleTabsInPanelInTabsTestModel; - ray()->clearScreen(); - $fields = $model->getFieldsWithIds(); - - ray($fields)->red()->once(); - $panel2 = $fields->where('slug', 'panel2')->first(); expect($panel2)->toBeArray(); @@ -115,7 +110,6 @@ public static function getFields() $fields = $model->getGroupedFields(); - ray($fields)->red()->once(); $this->assertCount(1, $fields); $this->assertEquals($fields[0]['name'], 'Aura\Base\Fields\Tabs'); diff --git a/tests/Feature/MultipleTabsInPanelInTabsWithAnotherPanelTest.php b/tests/Feature/MultipleTabsInPanelInTabsWithAnotherPanelTest.php index 8556dc83d..364b98da8 100644 --- a/tests/Feature/MultipleTabsInPanelInTabsWithAnotherPanelTest.php +++ b/tests/Feature/MultipleTabsInPanelInTabsWithAnotherPanelTest.php @@ -100,12 +100,8 @@ public static function getFields() test('multiple tabs in panels in tabs are possible', function () { $model = new MultipleTabsInPanelInTabsTestModelWithAnotherPanel; - ray()->clearScreen(); - $fields = $model->getGroupedFields(); - ray($fields)->red()->once(); - $this->assertCount(1, $fields); $this->assertEquals($fields[0]['name'], 'Aura\Base\Fields\Tabs'); $this->assertCount(2, $fields[0]['fields']); diff --git a/tests/Feature/MultipleTabsWithPanelsExcludeTest.php b/tests/Feature/MultipleTabsWithPanelsExcludeTest.php index a9aa121e2..649fedc94 100644 --- a/tests/Feature/MultipleTabsWithPanelsExcludeTest.php +++ b/tests/Feature/MultipleTabsWithPanelsExcludeTest.php @@ -86,12 +86,8 @@ public static function getFields() test('panel is underneath tabs, exclude level 2', function () { $model = new MultipleTabsWithPanelsExcludeModel; - ray()->clearScreen(); - $fields = $model->getGroupedFields(); - ray($fields)->red()->once(); - $this->assertCount(1, $fields); expect($fields[0]['name'])->toBe('Aura\Base\Fields\Tabs'); diff --git a/tests/Feature/Resource/ResourceActionsTest.php b/tests/Feature/Resource/ResourceActionsTest.php index b52e15b57..1b15a783d 100644 --- a/tests/Feature/Resource/ResourceActionsTest.php +++ b/tests/Feature/Resource/ResourceActionsTest.php @@ -16,7 +16,6 @@ // For testing purposes, you can use the following approach: // $this->app->beforeBootstrapping(AuraServiceProvider::class, function () { - // ray('before bootstrapping aura service provider')->green(); // }); }); diff --git a/tests/Feature/ResourcePanelTest.php b/tests/Feature/ResourcePanelTest.php index 16b7eb82b..c4323fd8f 100644 --- a/tests/Feature/ResourcePanelTest.php +++ b/tests/Feature/ResourcePanelTest.php @@ -61,12 +61,8 @@ public static function getWidgets(): array test('model get tabs with panels', function () { $model = new ModelWithPanel; - ray()->clearScreen(); - $fields = $model->getGroupedFields(); - ray($fields)->red()->once(); - $this->assertCount(1, $fields); $this->assertEquals($fields[0]['name'], 'Aura\Base\Fields\Tabs'); $this->assertEquals($fields[0]['fields'][0]['name'], 'Tab 1'); diff --git a/tests/Feature/Table/CustomTableFilterTest.php b/tests/Feature/Table/CustomTableFilterTest.php index 655be0f60..c490adc30 100644 --- a/tests/Feature/Table/CustomTableFilterTest.php +++ b/tests/Feature/Table/CustomTableFilterTest.php @@ -276,8 +276,6 @@ protected static function booted() // $component->call('getRows'); - // ray($queries); - // Inspect sql // Skip Test for now // expect($component->rowsQuery->toSql())->toContain('select * from "custom_projects" where "status" like ? and "custom_projects"."team_id" = ? order by "custom_projects"."id" desc'); diff --git a/tests/Feature/Table/SettingsTableTest.php b/tests/Feature/Table/SettingsTableTest.php index 95cd8ad6d..9a2807f9e 100644 --- a/tests/Feature/Table/SettingsTableTest.php +++ b/tests/Feature/Table/SettingsTableTest.php @@ -26,8 +26,6 @@ $component = Livewire::test(Table::class, ['model' => $this->post, 'settings' => $settings]); - // ray($component->settings); - expect($component->settings)->toHaveKey('per_page', 10); expect($component->settings)->toHaveKey('columns'); expect($component->settings['columns'])->toBeInstanceOf(Illuminate\Support\Collection::class); diff --git a/tests/Feature/Table/TableTaxonomyFilterTest.php b/tests/Feature/Table/TableTaxonomyFilterTest.php index 115558683..0ddef8d29 100644 --- a/tests/Feature/Table/TableTaxonomyFilterTest.php +++ b/tests/Feature/Table/TableTaxonomyFilterTest.php @@ -87,7 +87,6 @@ public static function getFields() ]); $posts = DB::table('posts')->get(); - ray($posts); // expect 2 posts to be created expect(TableTaxonomyFilterModel::count())->toBe(2); @@ -102,7 +101,6 @@ public static function getFields() $relations = DB::table('post_relations')->get(); $posts = TableTaxonomyFilterModel::get(); - ray($relations, $posts); // Apply Tag 1 filter $component->set('filters.custom', [[ @@ -118,8 +116,6 @@ public static function getFields() // Should have 1 item $component->assertViewHas('rows', function ($rows) use ($post) { - ray($rows->items()); - return count($rows->items()) === 1 && $rows->items()[0]->id === $post->id; }); diff --git a/tests/Feature/TabsAfterRepeaterTest.php b/tests/Feature/TabsAfterRepeaterTest.php index ccac3b779..35742d320 100644 --- a/tests/Feature/TabsAfterRepeaterTest.php +++ b/tests/Feature/TabsAfterRepeaterTest.php @@ -48,13 +48,8 @@ public static function getFields() test('tab is not grouped in repeater', function () { $model = new TabsAfterRepeaterModel; - ray()->clearScreen(); - $fields = $model->getGroupedFields(); - // ray(json_encode($fields))->red(); - // ray($fields)->red(); - $this->assertCount(1, $fields); $this->assertEquals($fields[0]['name'], 'Aura\Base\Fields\Tabs'); $this->assertCount(2, $fields[0]['fields']); diff --git a/tests/Feature/TabsInPanelInTabsTest.php b/tests/Feature/TabsInPanelInTabsTest.php index 7761d4a9f..c9f5e0026 100644 --- a/tests/Feature/TabsInPanelInTabsTest.php +++ b/tests/Feature/TabsInPanelInTabsTest.php @@ -76,8 +76,6 @@ public static function getFields() $fields = $model->getGroupedFields(); - ray($fields); - expect($fields)->toBeArray(); $this->assertCount(1, $fields); diff --git a/tests/Feature/TabsWithFieldsTest.php b/tests/Feature/TabsWithFieldsTest.php index 3c05bdd60..0aebe44dc 100644 --- a/tests/Feature/TabsWithFieldsTest.php +++ b/tests/Feature/TabsWithFieldsTest.php @@ -375,8 +375,6 @@ public static function getFields() $fields = $model->getGroupedFields(); - ray($fields); - expect($fields)->toBeArray(); $this->assertCount(1, $fields);