File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2525 */
2626class Auth
2727{
28+ /**
29+ * The current version of CodeIgniter Shield
30+ */
31+ public const SHIELD_VERSION = '1.0.0-beta.5 ' ;
32+
2833 protected Authentication $ authenticate ;
2934
3035 /**
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function __construct()
5656 */
5757 public function getTitleDetails (): string
5858 {
59- return get_class ($ this ->auth ->getAuthenticator ());
59+ return ShieldAuth:: SHIELD_VERSION . ' | ' . get_class ($ this ->auth ->getAuthenticator ());
6060 }
6161
6262 /**
Original file line number Diff line number Diff line change 44
55namespace Tests \Collectors ;
66
7+ use CodeIgniter \Shield \Auth as ShieldAuth ;
78use CodeIgniter \Shield \Authentication \Authenticators \Session ;
89use CodeIgniter \Shield \Collectors \Auth ;
910use CodeIgniter \Shield \Entities \User ;
@@ -71,6 +72,7 @@ public function testGetTitleDetails(): void
7172 {
7273 $ output = $ this ->collector ->getTitleDetails ();
7374
75+ $ this ->assertStringContainsString (ShieldAuth::SHIELD_VERSION , $ output );
7476 $ this ->assertStringContainsString (Session::class, $ output );
7577 }
7678
You can’t perform that action at this time.
0 commit comments