File tree Expand file tree Collapse file tree 5 files changed +8
-47
lines changed Expand file tree Collapse file tree 5 files changed +8
-47
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ name: "Run Tests - Laravel 5"
2
2
3
3
on :
4
4
push :
5
- branches : [ v2.12, master ]
5
+ branches : [ v2.12 ]
6
6
7
7
pull_request :
8
- branches : [ v2.12, master ]
8
+ branches : [ v2.12 ]
9
9
10
10
jobs :
11
11
tests :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
"name" : " 1ff/laravel-mongodb-cache" ,
3
3
"description" : " A mongodb cache driver for laravel" ,
4
4
"type" : " library" ,
5
- "version" : " 3.0.0 " ,
5
+ "version" : " 2.12.5 " ,
6
6
"require" : {
7
- "jenssegers/mongodb" : " ~3.7 " ,
8
- "illuminate/cache" : " ^7.0 "
7
+ "jenssegers/mongodb" : " ^3.5|^3.6 " ,
8
+ "illuminate/cache" : " ^5.8|^6 "
9
9
},
10
10
"require-dev" : {
11
- "orchestra/testbench" : " ^5 .0"
11
+ "orchestra/testbench" : " ^3.0|^4 .0"
12
12
},
13
13
"license" : " MIT" ,
14
14
"authors" : [
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function getExpiration($key)
77
77
78
78
$ expirationSeconds = $ cacheData ['expiration ' ]->toDateTime ()->getTimestamp ();
79
79
80
- return round (($ expirationSeconds - time ()) / 60 );
80
+ return round (($ expirationSeconds - $ this -> currentTime ()));
81
81
}
82
82
83
83
/**
Original file line number Diff line number Diff line change @@ -140,6 +140,6 @@ public function it_retrieves_an_items_expiration_time_by_given_key()
140
140
$ sut = $ this ->store ->getExpiration ('test-key ' );
141
141
142
142
// Assert
143
- $ this ->assertEquals (2880.0 , $ sut ); // 2 days in seconds.
143
+ $ this ->assertEquals (172800 , $ sut ); // 2 days in seconds.
144
144
}
145
145
}
You can’t perform that action at this time.
0 commit comments