Completed
Pull Request — master (#27)
by Will
09:02
created

DatabaseStoreTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStore() 0 7 1
1
<?php
2
3
namespace SilverStripe\HybridSessions\Tests;
4
5
use SilverStripe\Core\Injector\Injector;
6
use SilverStripe\HybridSessions\Store\DatabaseStore;
7
8
class DatabaseStoreTest extends AbstractTest
9
{
10
    protected function getStore()
11
    {
12
        $store = Injector::inst()->get(DatabaseStore::class);
13
        $store->setKey(uniqid());
14
15
        return $store;
16
    }
17
}
18