Skip to content

Commit 80ba57d

Browse files
ShradddhaShradddha
authored andcommitted
AC-12092:: Remove Deprecations- PhpUnit10 Unit Tests
1 parent 0c9fccc commit 80ba57d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

app/code/Magento/CatalogSearch/Test/Unit/Model/AdvancedTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ protected function getMockForAttribute(
111111
$storeLabel,
112112
$frontendInput,
113113
$backendType
114-
)
115-
{
114+
) {
116115
$attr = $this->createAttribute(
117116
$this->createBackend($backend),
118117
$this->createSource($source),

app/code/Magento/Ui/Component/DataSource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DataSource extends AbstractComponent implements DataSourceInterface
2020
/**
2121
* @var DataProviderInterface
2222
*/
23-
protected static $dataProvider;
23+
protected $dataProvider;
2424

2525
/**
2626
* Constructor
@@ -66,8 +66,8 @@ public function prepare()
6666
/**
6767
* @return DataProviderInterface
6868
*/
69-
public static function getDataProvider()
69+
public function getDataProvider()
7070
{
71-
return self::$dataProvider;
71+
return $this->dataProvider;
7272
}
7373
}

lib/internal/Magento/Framework/View/Element/UiComponent/DataSourceInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ interface DataSourceInterface extends UiComponentInterface
1818
/**
1919
* @return DataProviderInterface
2020
*/
21-
public static function getDataProvider();
21+
public function getDataProvider();
2222
}

0 commit comments

Comments
 (0)