File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/LaunchDarkly/Migrations Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public function build(): array|string
140140 $ event = [
141141 'kind ' => 'migration_op ' ,
142142 'creationDate ' => Util::currentTimeUnixMillis (),
143- 'contextKeys ' => $ this ->context -> getKeys () ,
143+ 'context ' => $ this ->context ,
144144 'operation ' => $ this ->operation ->value ,
145145 'evaluation ' => [
146146 'key ' => $ this ->key ,
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function getStatus(): array
7676 'secure-mode-hash ' ,
7777 'migrations ' ,
7878 'event-sampling ' ,
79- 'inline-context ' ,
79+ 'inline-context-all ' ,
8080 'anonymous-redaction ' ,
8181 'client-prereq-events ' ,
8282 'big-segments '
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function testCanBuildSuccessfully(): void
4747 $ this ->assertIsArray ($ result , 'tracker failed to build event ' );
4848 $ this ->assertEquals ('migration_op ' , $ result ['kind ' ]);
4949 $ this ->assertEquals ('read ' , $ result ['operation ' ]);
50- $ this ->assertSame ([ 'user ' => ' user -key '] , $ result ['contextKeys ' ]);
50+ $ this ->assertEquals (LDContext:: create ( 'user-key ' ) , $ result ['context ' ]);
5151
5252 $ evaluation = $ result ['evaluation ' ];
5353 $ this ->assertEquals ('flag ' , $ evaluation ['key ' ]);
You can’t perform that action at this time.
0 commit comments