File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
dev/tests/integration/testsuite/Magento/Customer/_files Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 6
6
* See COPYING.txt for license details.
7
7
*/
8
8
9
+ use Magento \Framework \Indexer \IndexerInterface ;
10
+ use Magento \Framework \Indexer \IndexerRegistry ;
11
+ use Magento \Customer \Model \Customer ;
12
+
9
13
require 'customer.php ' ;
10
14
11
15
$ customer = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create ('Magento\Customer\Model\Customer ' );
25
29
26
30
$ customer ->isObjectNew (true );
27
31
$ customer ->save ();
32
+
33
+ /** @var IndexerRegistry $indexerRegistry */
34
+ $ indexerRegistry = $ objectManager ->create (IndexerRegistry::class);
35
+ /** @var IndexerInterface $indexer */
36
+ $ indexer = $ indexerRegistry ->get (Customer::CUSTOMER_GRID_INDEXER_ID );
37
+ try {
38
+ $ indexer ->reindexAll ();
39
+ } catch (\Exception $ e ) {
40
+ }
You can’t perform that action at this time.
0 commit comments