mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-04 19:58:39 +00:00
add test for invalid item
This commit is contained in:
parent
c15c9b8b09
commit
d2ccc2d15e
|
|
@ -68,4 +68,20 @@ class ArticleCorrelationAffinityTest extends \PHPUnit\Framework\TestCase
|
||||||
0.001
|
0.001
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @testdox The affinity of a new article is empty
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testInvalidItemAffinity() : void
|
||||||
|
{
|
||||||
|
$orders = [
|
||||||
|
['A' => 1, 'B' => 1, 'C' => 0, 'D' => 0],
|
||||||
|
['A' => 0, 'B' => 1, 'C' => 0, 'D' => 0],
|
||||||
|
];
|
||||||
|
|
||||||
|
$aff = new ArticleCorrelationAffinity($orders);
|
||||||
|
|
||||||
|
self::assertEquals([], $aff->getAffinity('Z'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user