You are here

public function RadioactivityProcessorTest::testProcessDecayNoFields in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/RadioactivityProcessorTest.php \Drupal\Tests\radioactivity\Unit\RadioactivityProcessorTest::testProcessDecayNoFields()

@covers ::processDecay

File

tests/src/Unit/RadioactivityProcessorTest.php, line 146

Class

RadioactivityProcessorTest
@coversDefaultClass \Drupal\radioactivity\RadioactivityProcessor @group radioactivity

Namespace

Drupal\Tests\radioactivity\Unit

Code

public function testProcessDecayNoFields() {
  $data = [];
  $this->fieldStorageConfig
    ->loadByProperties([
    'type' => 'radioactivity',
  ])
    ->willReturn($data);
  $this->state
    ->set(RadioactivityProcessorInterface::LAST_PROCESSED_STATE_KEY, Argument::any())
    ->shouldNotBeCalled();
  $this->loggerChannel
    ->notice(Argument::any())
    ->shouldNotBeCalled();
  $this->sut
    ->processDecay();
}