• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

conedevelopment / bazar / 20727196417

05 Jan 2026 07:44PM UTC coverage: 80.129% (-0.4%) from 80.486%
20727196417

push

github

iamgergo
add null cart driver

1 of 13 new or added lines in 3 files covered. (7.69%)

1988 of 2481 relevant lines covered (80.13%)

37.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/src/Cart/Manager.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Cone\Bazar\Cart;
6

7
use Cone\Bazar\Interfaces\Cart\Manager as Contract;
8
use Illuminate\Support\Manager as BaseManager;
9

10
class Manager extends BaseManager implements Contract
11
{
12
    /**
13
     * Get the default driver name.
14
     */
15
    public function getDefaultDriver(): string
14✔
16
    {
17
        return $this->config->get('bazar.cart.default');
14✔
18
    }
19

20
    /**
21
     * Create the cookie driver.
22
     */
23
    public function createCookieDriver(): CookieDriver
14✔
24
    {
25
        return new CookieDriver(
14✔
26
            $this->config->get('bazar.cart.drivers.cookie', [])
14✔
27
        );
14✔
28
    }
29

30
    /**
31
     * Create the session driver.
32
     */
33
    public function createSessionDriver(): SessionDriver
1✔
34
    {
35
        return new SessionDriver(
1✔
36
            $this->config->get('bazar.cart.drivers.session', [])
1✔
37
        );
1✔
38
    }
39

40
    /**
41
     * Create the null driver.
42
     */
NEW
43
    public function createNullDriver(): NullDriver
×
44
    {
NEW
45
        return new NullDriver(
×
NEW
46
            $this->config->get('bazar.cart.drivers.null', [])
×
NEW
47
        );
×
48
    }
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc