Skip to content

Commit

Permalink
Revert "CS fix"
Browse files Browse the repository at this point in the history
This reverts commit 41c137f.
  • Loading branch information
PatrickePatate committed Dec 18, 2024
1 parent 5c55675 commit 401f1ba
Show file tree
Hide file tree
Showing 41 changed files with 132 additions and 132 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/Api/BreadcrumbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function setUp(): void
}

/** @test */
public function breadcrumb_is_appended_and_built_depending_on_referer_for_ap_i_calls()
public function breadcrumb_is_appended_and_built_depending_on_referer_for_API_calls()
{
$this->buildTheWorld();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function we_can_call_a_download_entity_command()
}

/** @test */
public function we_can_call_a_stream_download_entity_command()
public function we_can_call_a_streamDownload_entity_command()
{
$this->buildTheWorld();
$this->withoutExceptionHandling();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function we_can_return_a_refresh_listed_items_action_on_state_update()
}

/** @test */
public function we_cant_update_the_state_of_an_entity_with_a_wrong_state_id()
public function we_cant_update_the_state_of_an_entity_with_a_wrong_stateId()
{
$this->buildTheWorld();

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Api/EntityListControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function we_can_reorder_instances()
}

/** @test */
public function list_config_contains_has_show_page_is_relevant()
public function list_config_contains_hasShowPage_is_relevant()
{
$this->getJson('/sharp/api/list/person')
->assertOk()
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Api/MultiFormEntityFormControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ protected function getFormValidatorClass(): ?string
{
return app(SharpEntityManager::class)
->entityFor('person')
->multiformValidatorsForTest['big'] ?? null;
->multiformValidatorsForTest['big'] ?? null;
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Dashboard/SharpBarGraphWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function we_can_define_minimal_attribute()
}

/** @test */
public function we_can_define_show_legend_attribute()
public function we_can_define_showLegend_attribute()
{
$widget = SharpBarGraphWidget::make('name')
->setShowLegend(false);
Expand All @@ -62,7 +62,7 @@ public function we_can_define_height_attribute()
}

/** @test */
public function we_can_define_display_horizontal_axis_as_timeline_attribute()
public function we_can_define_displayHorizontalAxisAsTimeline_attribute()
{
$widget = SharpBarGraphWidget::make('name')
->setDisplayHorizontalAxisAsTimeline();
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Dashboard/SharpPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function returned_array_contains_template()
}

/** @test */
public function returned_array_contains_the_sharp_link_to_link()
public function returned_array_contains_the_SharpLinkTo_link()
{
$widget = SharpPanelWidget::make('name')
->setInlineTemplate('<b>test</b>')
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Dashboard/SharpWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function we_can_define_title()
}

/** @test */
public function we_can_define_an_sharp_link_to_link()
public function we_can_define_an_SharpLinkTo_link()
{
$widget = SomeTestWidget::make('name')
->setLink(LinkToEntityList::make('entity'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class SimpleEloquentReorderHandlerTest extends SharpEloquentBaseTestCase
{
/** @test */
public function we_can_use_simple_eloquent_reorder_handler()
public function we_can_use_SimpleEloquentReorderHandler()
{
Person::create(['id' => 10, 'name' => 'Bob', 'order' => 1]);
Person::create(['id' => 20, 'name' => 'Bob', 'order' => 2]);
Expand All @@ -22,7 +22,7 @@ public function we_can_use_simple_eloquent_reorder_handler()
}

/** @test */
public function we_can_use_simple_eloquent_reorder_handler_with_custom_order_attribute()
public function we_can_use_SimpleEloquentReorderHandler_with_custom_order_attribute()
{
Person::create(['id' => 20, 'name' => 'Bob', 'order' => 3, 'age' => 22]);
Person::create(['id' => 30, 'name' => 'Bob', 'order' => 2, 'age' => 32]);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EntityList/EntityListFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function buildFilterConfig(): void
}

/** @test */
public function we_can_define_search_keys_on_a_filter()
public function we_can_define_searchKeys_on_a_filter()
{
$list = new class() extends SharpEntityDefaultTestList
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EntityList/EntityListQueryParamsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class EntityListQueryParamsTest extends SharpTestCase
{
/** @test */
public function we_can_know_there_is_a_search_with_has_search()
public function we_can_know_there_is_a_search_with_hasSearch()
{
$this->assertTrue($this->buildParams(1, 'test')->hasSearch());
$this->assertFalse($this->buildParams(1, '')->hasSearch());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class BelongsToManyRelationUpdaterTest extends SharpEloquentBaseTestCase
{
/** @test */
public function we_can_update_a_belongs_to_many_relation()
public function we_can_update_a_belongsToMany_relation()
{
$person1 = Person::create(['name' => 'A']);
$person2 = Person::create(['name' => 'B']);
Expand All @@ -29,7 +29,7 @@ public function we_can_update_a_belongs_to_many_relation()
}

/** @test */
public function we_can_update_an_existing_belongs_to_many_relation()
public function we_can_update_an_existing_belongsToMany_relation()
{
$person1 = Person::create(['name' => 'A']);
$person2 = Person::create(['name' => 'B']);
Expand Down Expand Up @@ -80,7 +80,7 @@ public function we_can_can_create_a_new_related_item()
}

/** @test */
public function we_can_handle_order_in_a_belongs_to_many_relation()
public function we_can_handle_order_in_a_belongsToMany_relation()
{
$person1 = Person::create(['name' => 'A']);
$person2 = Person::create(['name' => 'B']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class BelongsToRelationUpdaterTest extends SharpEloquentBaseTestCase
{
/** @test */
public function we_can_update_a_belongs_to_relation()
public function we_can_update_a_belongsTo_relation()
{
$mother = Person::create(['name' => 'Jane Wayne']);
$person = Person::create(['name' => 'John Wayne']);
Expand All @@ -25,7 +25,7 @@ public function we_can_update_a_belongs_to_relation()
}

/** @test */
public function we_can_create_a_belongs_to_relation()
public function we_can_create_a_belongsTo_relation()
{
$person = Person::create(['name' => 'John Wayne']);

Expand All @@ -43,7 +43,7 @@ public function we_can_create_a_belongs_to_relation()
}

/** @test */
public function we_set_default_attributes_when_creating_a_belongs_to_relation()
public function we_set_default_attributes_when_creating_a_belongsTo_relation()
{
$person = PersonWithDefaultAttributes::create(['name' => 'John Wayne']);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class HasManyRelationUpdaterTest extends SharpEloquentBaseTestCase
{
/** @test */
public function we_can_update_a_has_many_relation()
public function we_can_update_a_hasMany_relation()
{
$mother = Person::create(['name' => 'Jane Wayne']);
$son1 = Person::create(['name' => 'A', 'mother_id' => $mother->id]);
Expand All @@ -29,7 +29,7 @@ public function we_can_update_a_has_many_relation()
}

/** @test */
public function we_can_create_a_new_related_item_in_a_has_many_relation()
public function we_can_create_a_new_related_item_in_a_hasMany_relation()
{
$mother = Person::create(['name' => 'Jane Wayne']);

Expand All @@ -47,7 +47,7 @@ public function we_can_create_a_new_related_item_in_a_has_many_relation()
}

/** @test */
public function we_do_not_update_the_id_attribute_when_updating_a_related_item_in_a_has_many_relation()
public function we_do_not_update_the_id_attribute_when_updating_a_related_item_in_a_hasMany_relation()
{
$mother = Person::create(['name' => 'Jane Wayne']);

Expand All @@ -61,7 +61,7 @@ public function we_do_not_update_the_id_attribute_when_updating_a_related_item_i
}

/** @test */
public function we_certainly_do_update_the_id_attribute_when_updating_a_related_item_in_a_has_many_relation_in_a_non_incrementing_id_case()
public function we_certainly_do_update_the_id_attribute_when_updating_a_related_item_in_a_hasMany_relation_in_a_non_incrementing_id_case()
{
$mother = PersonWithFixedId::create(['name' => 'Jane Wayne']);

Expand All @@ -77,7 +77,7 @@ public function we_certainly_do_update_the_id_attribute_when_updating_a_related_
}

/** @test */
public function the_optional_get_default_attributes_for_method_is_called_on_an_item_creation()
public function the_optional_getDefaultAttributesFor_method_is_called_on_an_item_creation()
{
$mother = new class() extends Person
{
Expand Down Expand Up @@ -105,7 +105,7 @@ public function getDefaultAttributesFor($attribute)
}

/** @test */
public function we_can_delete_an_existing_related_item_in_a_has_many_relation()
public function we_can_delete_an_existing_related_item_in_a_hasMany_relation()
{
$mother = Person::create(['name' => 'Jane Wayne']);
$son1 = Person::create(['name' => 'John Wayne', 'mother_id' => $mother->id]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class HasOneRelationUpdaterTest extends SharpEloquentBaseTestCase
{
/** @test */
public function we_can_update_a_has_one_relation()
public function we_can_update_a_hasOne_relation()
{
$mother = Person::create(['name' => 'Jane Wayne']);
$son = Person::create(['name' => 'John Wayne']);
Expand All @@ -25,7 +25,7 @@ public function we_can_update_a_has_one_relation()
}

/** @test */
public function we_can_create_a_has_one_related()
public function we_can_create_a_hasOne_related()
{
$mother = Person::create(['name' => 'Jane Wayne']);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class MorphManyRelationUpdaterTest extends SharpEloquentBaseTestCase
{
/** @test */
public function we_can_create_a_morph_many_related()
public function we_can_create_a_morphMany_related()
{
$person = Person::create(['name' => 'John Wayne']);

Expand All @@ -28,7 +28,7 @@ public function we_can_create_a_morph_many_related()
}

/** @test */
public function we_can_update_a_morph_many_related()
public function we_can_update_a_morphMany_related()
{
$person = Person::create(['name' => 'John Wayne']);
$person->pictures()->create([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class MorphOneRelationUpdaterTest extends SharpEloquentBaseTestCase
{
/** @test */
public function we_can_create_a_morph_one_related()
public function we_can_create_a_morphOne_related()
{
$person = Person::create(['name' => 'John Wayne']);

Expand All @@ -26,7 +26,7 @@ public function we_can_create_a_morph_one_related()
}

/** @test */
public function we_can_update_a_morph_one_related()
public function we_can_update_a_morphOne_related()
{
$person = Person::create(['name' => 'John Wayne']);
$person->picture()->create([
Expand All @@ -45,7 +45,7 @@ public function we_can_update_a_morph_one_related()
}

/** @test */
public function we_ignore_a_morph_one_related_if_null()
public function we_ignore_a_morphOne_related_if_null()
{
$person = Person::create(['name' => 'John Wayne']);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function getEnvironmentSetUp($app)
}

/** @test */
public function we_can_update_a_morph_to_many_relation()
public function we_can_update_a_morphToMany_relation()
{
$person = TaggablePerson::create(['name' => 'A']);
$tag = Tag::create(['name' => 'A']);
Expand All @@ -49,7 +49,7 @@ public function we_can_update_a_morph_to_many_relation()
}

/** @test */
public function we_can_update_an_existing_morph_to_many_relation()
public function we_can_update_an_existing_morphToMany_relation()
{
$person = TaggablePerson::create(['name' => 'A']);
$oldTag = Tag::create(['name' => 'A']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function we_can_transform_a_list_of_upload_with_transformations()
}

/** @test */
public function we_can_fake_an_sharp_upload_and_transform_a_single_upload()
public function we_can_fake_an_sharpUpload_and_transform_a_single_upload()
{
$file = $this->createImage();

Expand Down
Loading

0 comments on commit 401f1ba

Please sign in to comment.