Skip to content
Snippets Groups Projects
Verified Commit 5cbe79a4 authored by Jibran Ijaz's avatar Jibran Ijaz
Browse files

Issue #3383916 by jibran: PHPCS fixes.


Signed-off-by: default avatarJibran Ijaz <jibran.ijaz@gmail.com>
parent 4e91afb6
No related branches found
No related tags found
No related merge requests found
Pipeline #65053 passed with warnings
......@@ -146,7 +146,7 @@ class DatasetPipelineBaseTest extends DatasetKernelTestBase {
}
/**
* A test to ensure that the typed data created during validation is cached according to the data pipeline.
* Ensure the typed data created during validation is cached according to the data pipeline.
*/
public function testTypedDataCaching(): void {
$dataset_data = new DatasetData([
......@@ -157,7 +157,16 @@ class DatasetPipelineBaseTest extends DatasetKernelTestBase {
$typed_data_manager = $this->prophesize(TypedDataManager::class);
$typed_data_manager->create(Argument::type(MapDataDefinition::class), $dataset_data, 'test_pipeline_1')->shouldBeCalled()->willReturn($string_data->reveal());
$this->container->set('typed_data_manager', $typed_data_manager->reveal());
$data_pipeline = DatasetPipelineBase::create($this->container, [], 'test_pipeline_1', ['validations' => ['field' => ['foo' => [new NotBlank()]], 'record' => []]]);
$data_pipeline = DatasetPipelineBase::create($this->container, [], 'test_pipeline_1', [
'validations' => [
'field' => [
'foo' => [
new NotBlank(),
],
],
'record' => [],
],
]);
$data_pipeline->validate($dataset_data);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment