Skip to content

Commit

Permalink
mark all phpunit provider as Static
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Aug 19, 2024
1 parent c7c2f87 commit 9a87141
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- remove legacy version annotation on docker-compose.yml

### Changed
- mark all phpunit provider as Static

## [1.2.1] - 2024-05-31
### Removed
- drop tests support on Drupal <= 9.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function testCreateRandomTitle(): void {
* @return array
* Data provided.
*/
public function providerTaxonomyFieldValues(): array {
public static function providerTaxonomyFieldValues(): array {
return [
'Test content entity reference' => [
[
Expand Down Expand Up @@ -342,7 +342,7 @@ public function providerTaxonomyFieldValues(): array {
* @return array
* Data provided.
*/
public function providerNodeFieldValues(): array {
public static function providerNodeFieldValues(): array {
return [
'Test content entity reference' => [[
'entity_type' => 'node',
Expand Down
4 changes: 2 additions & 2 deletions tests/src/Kernel/FactoryType/EntityFieldFactoryTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function testCreateRandomTitle(): void {
* @return array
* Data provided.
*/
public function providerTaxonomyFieldValues(): array {
public static function providerTaxonomyFieldValues(): array {
return [
'text field' => [
[
Expand Down Expand Up @@ -339,7 +339,7 @@ public function providerTaxonomyFieldValues(): array {
* @return array
* Data provided.
*/
public function providerNodeFieldValues(): array {
public static function providerNodeFieldValues(): array {
return [
'text field' => [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/FactoryType/FileFactoryTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function testCreateGetAutomaticFilename(): void {
* @return array
* Data provided.
*/
public function providerFileValues(): array {
public static function providerFileValues(): array {
return [
'.txt' => [
'html-1.txt',
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/FactoryType/MediaFactoryTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function testCreateMediaTypeMustExists(): void {
* @return array
* Data provided.
*/
public function providerMediaValues(): array {
public static function providerMediaValues(): array {
return [
'published media file' => [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/FactoryType/MediaTypeFactoryTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function testCreateRandomId(): void {
* @return array
* Data provided.
*/
public function providerMediaTypeValues(): array {
public static function providerMediaTypeValues(): array {
return [
'media File type' => [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/FactoryType/NodeFactoryTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function testCreateRandomTitle(): void {
* @return array
* Data provided.
*/
public function providerNodeValues(): array {
public static function providerNodeValues(): array {
return [
'published node' => [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function testCreateRandomTitle(): void {
* @return array
* Data provided.
*/
public function providerValues(): array {
public static function providerValues(): array {
return [
'published taxonomy term' => [
[
Expand Down

0 comments on commit 9a87141

Please sign in to comment.