public function RadioactivityProcessorTest::providerQueueProcessDecay in Radioactivity 4.0.x
Same name and namespace in other branches
- 8.3 tests/src/Unit/RadioactivityProcessorTest.php \Drupal\Tests\radioactivity\Unit\RadioactivityProcessorTest::providerQueueProcessDecay()
Data provider for testQueueProcessDecay.
Return value
array
- field type
- profile,
- half life,
- cutoff,
- initial energy,
- timestamp,
- is published,
- langcode,
- resulting energy
File
- tests/
src/ Unit/ RadioactivityProcessorTest.php, line 303
Class
- RadioactivityProcessorTest
- @coversDefaultClass \Drupal\radioactivity\RadioactivityProcessor @group radioactivity
Namespace
Drupal\Tests\radioactivity\UnitCode
public function providerQueueProcessDecay() {
return [
[
'radioactivity',
'count',
10,
10,
100,
10,
TRUE,
'en',
100,
],
[
'radioactivity',
'linear',
10,
10,
100,
0,
TRUE,
'en',
100,
],
[
'radioactivity',
'linear',
10,
10,
100,
10,
TRUE,
'en',
90,
],
[
'radioactivity',
'linear',
10,
10,
100,
90,
TRUE,
'en',
0,
],
[
'radioactivity',
'decay',
10,
10,
100,
0,
TRUE,
'en',
100,
],
[
'radioactivity',
'decay',
10,
10,
100,
10,
TRUE,
'en',
50,
],
[
'radioactivity',
'decay',
10,
10,
100,
20,
TRUE,
'en',
25,
],
[
'radioactivity',
'decay',
10,
30,
100,
20,
TRUE,
'en',
0,
],
[
'radioactivity',
'decay',
5,
10,
100,
10,
TRUE,
'en',
25,
],
[
'radioactivity',
'count',
10,
10,
100,
10,
FALSE,
'en',
0,
],
[
'radioactivity',
'linear',
10,
10,
100,
10,
FALSE,
'en',
100,
],
[
'radioactivity',
'decay',
10,
10,
100,
10,
FALSE,
'en',
100,
],
];
}