You are here

public function RadioactivityProcessorTest::providerQueueProcessDecay 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::providerQueueProcessDecay()

Data provider for testQueueProcessDecay.

Return value

array

  • profile,
  • half life,
  • cutoff,
  • initial energy,
  • timestamp,
  • is published,
  • resulting energy

File

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

Class

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

Namespace

Drupal\Tests\radioactivity\Unit

Code

public function providerQueueProcessDecay() {
  return [
    [
      'count',
      10,
      10,
      100,
      10,
      TRUE,
      100,
    ],
    [
      'linear',
      10,
      10,
      100,
      0,
      TRUE,
      100,
    ],
    [
      'linear',
      10,
      10,
      100,
      10,
      TRUE,
      90,
    ],
    [
      'linear',
      10,
      10,
      100,
      90,
      TRUE,
      0,
    ],
    [
      'decay',
      10,
      10,
      100,
      0,
      TRUE,
      100,
    ],
    [
      'decay',
      10,
      10,
      100,
      10,
      TRUE,
      50,
    ],
    [
      'decay',
      10,
      10,
      100,
      20,
      TRUE,
      25,
    ],
    [
      'decay',
      10,
      30,
      100,
      20,
      TRUE,
      0,
    ],
    [
      'decay',
      5,
      10,
      100,
      10,
      TRUE,
      25,
    ],
    [
      'count',
      10,
      10,
      100,
      10,
      FALSE,
      0,
    ],
    [
      'linear',
      10,
      10,
      100,
      10,
      FALSE,
      100,
    ],
    [
      'decay',
      10,
      10,
      100,
      10,
      FALSE,
      100,
    ],
  ];
}