public function CommerceReportsPatternsTestCase::testExample in Commerce Reporting 7.4
Same name and namespace in other branches
- 7.3 modules/patterns/tests/commerce_reports_patterns.test \CommerceReportsPatternsTestCase::testExample()
File
- modules/
patterns/ tests/ commerce_reports_patterns.test, line 47
Class
Code
public function testExample() {
$milk = $this
->createDummyProduct('milk');
$bread = $this
->createDummyProduct('bread');
$butter = $this
->createDummyProduct('butter');
$beer = $this
->createDummyProduct('beer');
$this
->addTransaction($milk, $bread);
$this
->addTransaction($butter);
$this
->addTransaction($beer);
$this
->addTransaction($milk, $bread, $butter);
$this
->addTransaction($bread);
$admin = $this
->createPatternsAdmin();
$this
->drupalLogin($admin);
$this
->drupalPost('admin/commerce/reports/patterns', array(
'min_support' => '10',
'min_confidence' => '10',
), t('Generate'));
}